调整了竞赛页面中参赛作品数量统计及跳转

This commit is contained in:
wanglinchun 2014-05-08 18:38:09 +08:00
parent d686e105a5
commit caff0f55c9
2 changed files with 14 additions and 7 deletions

View File

@ -98,19 +98,25 @@
<tr align="center" width="80px"> <tr align="center" width="80px">
<!-- <td class="font_index"> <!-- <td class="font_index">
<%=link_to "#{@contest.join_in_competitions.count}",:controller => "contests",:action => "show_participator" %> <%=link_to "#{@contest.join_in_competitions.count}",:controller => "contests",:action => "show_participator" %>
</td> --> </td> -->
<!--关注人数-->
<td class="font_index"> <td class="font_index">
<%=link_to "#{@contest.projects.where('is_public=1').count}", :controller => 'contests', :action => 'show_project' %> <%=link_to "#{@contest.projects.where('is_public=1').count}", :controller => 'contests', :action => 'show_project' %>
</td> </td>
<td class="font_index"> <!--参赛作品数量-->
<%=link_to "#{@contest.contesting_softapplications.count}", :controller => 'contests', :action => 'show_softapplication' %> <td class="font_index">
<% 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 %>
</td> </td>
</tr> </tr>
<tr class="font_aram"> <tr class="font_aram">
<!-- <td align="center" width="70px"> <%= l(:label_participate) %></td> --> <!-- <td align="center" width="70px"> <%= l(:label_participate) %></td> -->
<td align="center" width="70px"> <%= l(:label_contest_project) %></td> <td align="center" width="70px"> <%= l(:label_contest_watchers) %></td>
<td align="center" width="70px"> <%= l(:label_contest_application) %></td> <td align="center" width="70px"> <%= l(:label_contest_work) %></td>
</tr> </tr>
</table> </table>

View File

@ -1840,8 +1840,9 @@ zh:
label_contest_project: 参赛项目 label_contest_project: 参赛项目
label_contest_softapplication: 参赛应用 label_contest_softapplication: 参赛应用
label_contest_response: 用户反馈 label_contest_response: 用户反馈
label_contest_watchers: 关注人 label_contest_watchers: 关注人
label_contest_application: 参赛应用 label_contest_application: 参赛应用
label_contest_work: 参赛作品
button_contesting_as_project: 我要参赛(新建项目) button_contesting_as_project: 我要参赛(新建项目)
button_contesting_as_application: 我要参赛(发布应用) button_contesting_as_application: 我要参赛(发布应用)
label_release_softapplication: 发布应用 label_release_softapplication: 发布应用