diff --git a/app/views/layouts/base_newcontest.html.erb b/app/views/layouts/base_newcontest.html.erb index 07654eddb..479e74e4c 100644 --- a/app/views/layouts/base_newcontest.html.erb +++ b/app/views/layouts/base_newcontest.html.erb @@ -98,19 +98,25 @@ + --> + <%=link_to "#{@contest.projects.where('is_public=1').count}", :controller => 'contests', :action => 'show_project' %> - - - <%=link_to "#{@contest.contesting_softapplications.count}", :controller => 'contests', :action => 'show_softapplication' %> + + + + <% 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' %> + <% else %> + <%=link_to "#{@contest.contesting_softapplications.count}", :controller => 'contests', :action => 'show_attendingcontest' %> + <% end %> - <%= l(:label_contest_project) %> - <%= l(:label_contest_application) %> + <%= l(:label_contest_watchers) %> + <%= l(:label_contest_work) %> diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 1b3d0e23c..228145dfb 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -1840,8 +1840,9 @@ zh: label_contest_project: 参赛项目 label_contest_softapplication: 参赛应用 label_contest_response: 用户反馈 - label_contest_watchers: 关注人员 + label_contest_watchers: 关注人数 label_contest_application: 参赛应用 + label_contest_work: 参赛作品 button_contesting_as_project: 我要参赛(新建项目) button_contesting_as_application: 我要参赛(发布应用) label_release_softapplication: 发布应用