From 5c04f9185785b1fd9334272463c9637c6b0df237 Mon Sep 17 00:00:00 2001 From: wanglinchun Date: Thu, 8 May 2014 18:46:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E7=AB=9E=E8=B5=9B?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=B8=AD=E5=85=B3=E6=B3=A8=E4=BA=BA=E6=95=B0?= =?UTF-8?q?=E7=9A=84=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_newcontest.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/base_newcontest.html.erb b/app/views/layouts/base_newcontest.html.erb index 479e74e4c..a4d33bb99 100644 --- a/app/views/layouts/base_newcontest.html.erb +++ b/app/views/layouts/base_newcontest.html.erb @@ -101,12 +101,13 @@ --> - <%=link_to "#{@contest.projects.where('is_public=1').count}", :controller => 'contests', :action => 'show_project' %> + + <%=link_to "#{@contest.watcher_users.count}", :controller => 'contests', :action => 'show_project' %> <% if @contest.id == 2 or @contest.id == 3 or @contest.id == 6 %> - <%=link_to "#{@contest.projects.where('is_public=1').count}", :controller => 'contests', :action => 'show_attendingcontest' %> + <%=link_to "#{@contest.projects.where('is_public=1').count}" %> <% else %> <%=link_to "#{@contest.contesting_softapplications.count}", :controller => 'contests', :action => 'show_attendingcontest' %> <% end %>