From 5a0d76c1e07479e206928fe6304fe455f4525b8e Mon Sep 17 00:00:00 2001 From: z9hang Date: Fri, 25 Jul 2014 11:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E8=B5=9B=E9=80=9A=E7=9F=A5=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/welcome_controller.rb | 1 + app/views/welcome/contest.html.erb | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index 7109a5460..0cca7be6e 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -107,6 +107,7 @@ class WelcomeController < ApplicationController def contest @contest_page = FirstPage.where("page_type = 'contest'").first + @contestNotification = ContestNotification.all.first end def search diff --git a/app/views/welcome/contest.html.erb b/app/views/welcome/contest.html.erb index ade2859f7..88855e0c7 100644 --- a/app/views/welcome/contest.html.erb +++ b/app/views/welcome/contest.html.erb @@ -197,18 +197,19 @@ <%#= link_to l(:label_more_information), forums_path %>
-
2014年Android程序设计大赛获奖名单
+
<%= @contestNotification.title %>
-
一等奖: 消灭那怪兽
+ + <%= @contestNotification.content.html_safe %>