From ddca1a0316a4eaebdc921ece06d6cdd6118f13ce Mon Sep 17 00:00:00 2001 From: z9hang Date: Wed, 8 Oct 2014 14:57:26 +0800 Subject: [PATCH] =?UTF-8?q?#1331=20=E5=88=9B=E6=96=B0=E7=AB=9E=E8=B5=9B?= =?UTF-8?q?=EF=BC=9A=E7=82=B9=E5=87=BB=E7=AB=9E=E8=B5=9B=E2=80=9C=202014?= =?UTF-8?q?=20=E5=B9=B4=20Android=20=E7=A8=8B=E5=BA=8F=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E7=AB=9E=E8=B5=9B=20=E2=80=9D=E8=BF=94=E5=9B=9E404=E9=94=99?= =?UTF-8?q?=E8=AF=AF=20=E5=8E=9F=E5=9B=A0=EF=BC=8C1=E3=80=81=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E7=BC=BA=E5=A4=B1=EF=BC=8C=E8=A1=A5=E4=B8=8A=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E3=80=822=E3=80=81=E6=9B=B4=E5=A4=9A=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E5=A4=84=E5=8A=A0=E4=B8=8A=E5=8F=82=E6=95=B0=E3=80=82?= =?UTF-8?q?3=E3=80=81=E5=AF=B9=E5=BA=94show=5Fcontest=5Fuser=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E4=B8=AD=E4=B8=80=E4=B8=AA@users=E5=86=99=E9=94=99?= =?UTF-8?q?=E6=88=90@uers=E4=BF=AE=E6=AD=A3=E4=B9=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/contests_controller.rb | 2 +- app/views/layouts/base_newcontest.html.erb | 6 +++--- config/routes.rb | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/controllers/contests_controller.rb b/app/controllers/contests_controller.rb index 1b7791ac4..71edfe835 100644 --- a/app/controllers/contests_controller.rb +++ b/app/controllers/contests_controller.rb @@ -258,7 +258,7 @@ class ContestsController < ApplicationController contests.each do |contest| contest.projects.each do |project| - @uers += project.users + @users += project.users end end # end diff --git a/app/views/layouts/base_newcontest.html.erb b/app/views/layouts/base_newcontest.html.erb index c8e78d7f5..adce80d24 100644 --- a/app/views/layouts/base_newcontest.html.erb +++ b/app/views/layouts/base_newcontest.html.erb @@ -179,9 +179,9 @@
<%= l(:label_x_followers, :count => @contest.watcher_users.count) %> - + <% if show_more_fans?(@contest) %> + <%= link_to l(:label_more), show_contest_user_contest_path(@contest) %> + <% end %>
diff --git a/config/routes.rb b/config/routes.rb index c4584ea7b..f4f858a9f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -132,6 +132,7 @@ RedmineApp::Application.routes.draw do match 'add_softapplication' , :via => [:get, :post] match 'create' , :via => :post match 'settings' , :via => [:get, :post] + match 'show_contest_user' end end