2014-04-03 22:38:18 +08:00
|
|
|
<!-- fq -->
|
|
|
|
<% contests.each do |contest|%>
|
|
|
|
<table width="95%" border="0" style="padding-left: 10px; padding-top: 10px;">
|
|
|
|
<tr>
|
2014-07-14 09:18:31 +08:00
|
|
|
<td colspan="2" valign="top" width="50" >
|
|
|
|
<% unless contest.author.nil? %>
|
2014-09-12 16:45:03 +08:00
|
|
|
<%= link_to(image_tag(url_to_avatar(contest.author), :class => 'avatar'),
|
|
|
|
user_path(contest.author),
|
|
|
|
:class => "avatar")
|
|
|
|
%>
|
2014-07-14 09:18:31 +08:00
|
|
|
<% end %>
|
|
|
|
</td>
|
2014-04-03 22:38:18 +08:00
|
|
|
<td>
|
|
|
|
<table width="100%" border="0">
|
|
|
|
<tr>
|
2014-07-14 09:18:31 +08:00
|
|
|
<td colspan="2" valign="top"><strong>
|
|
|
|
<% unless contest.author.nil? %>
|
2014-09-12 16:45:03 +08:00
|
|
|
<%= link_to(contest.author,
|
|
|
|
user_path(contest.author),
|
|
|
|
:class => 'bid_user')
|
|
|
|
%>:
|
2014-07-14 09:18:31 +08:00
|
|
|
<% end %>
|
2014-09-12 16:45:03 +08:00
|
|
|
<%= link_to(contest.name,
|
|
|
|
contest_contestnotifications_path(contest),
|
|
|
|
:class => 'bid_path',
|
|
|
|
:target => "_blank") %></strong></td>
|
2014-04-03 22:38:18 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td width="500">
|
|
|
|
<table border="0">
|
|
|
|
<tr>
|
|
|
|
<td>
|
2014-09-12 16:45:03 +08:00
|
|
|
<strong><%= l(:label_contests_reward_method) %>:
|
|
|
|
<span style="word-break: break-all; color: #15bccf; font-family: 14px; font-family: '微软雅黑'">
|
|
|
|
<%= contest.budget%>
|
|
|
|
</span>
|
|
|
|
</strong>
|
2014-04-03 22:38:18 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2014-05-08 18:58:33 +08:00
|
|
|
<td class="font_lighter">
|
2014-09-12 16:45:03 +08:00
|
|
|
<!-- <span class="font_lighter">
|
2014-09-17 14:58:13 +08:00
|
|
|
<%#= l(:label_contest_project,
|
2014-09-12 16:45:03 +08:00
|
|
|
:count => contest.contesting_projects.count)
|
|
|
|
%>
|
|
|
|
(<strong><span style="font-size: 17px">
|
2014-09-17 14:58:13 +08:00
|
|
|
<%#= link_to(contest.contesting_projects.count,
|
2014-09-12 16:45:03 +08:00
|
|
|
show_project_contest_path(contest),
|
|
|
|
:target => "_blank")
|
|
|
|
%></span></strong>)</span>
|
|
|
|
<span class="font_lighter">
|
2014-09-17 14:58:13 +08:00
|
|
|
<%#= l(:label_contest_softapplication,
|
2014-09-12 16:45:03 +08:00
|
|
|
:count => contest.contesting_softapplications.count)
|
|
|
|
%>
|
|
|
|
(<strong><span style="font-size: 17px">
|
2014-09-17 14:58:13 +08:00
|
|
|
<%#= link_to(contest.contesting_softapplications.count,
|
2014-09-12 16:45:03 +08:00
|
|
|
show_softapplication_contest_path(contest),
|
|
|
|
:target => "_blank")
|
|
|
|
%>
|
|
|
|
</span></strong>)</span> -->
|
|
|
|
<!-- modified by longjun
|
|
|
|
将 or 改成 || -->
|
|
|
|
<% if contest.id == 2 || contest.id == 3 || contest.id == 6 %>
|
|
|
|
<%= l(:label_contest_work,
|
|
|
|
:count => contest.contesting_projects.count)
|
|
|
|
%>
|
|
|
|
(<strong>
|
|
|
|
<span style="font-size: 17px">
|
|
|
|
<%= link_to(contest.projects.where('is_public=1').count,
|
|
|
|
show_attendingcontest_contest_path(contest),
|
|
|
|
:target => "_blank")
|
|
|
|
%>
|
|
|
|
</span>
|
|
|
|
</strong>)
|
2014-05-08 18:58:33 +08:00
|
|
|
<% else %>
|
2014-09-12 16:45:03 +08:00
|
|
|
<%= l(:label_contest_work,
|
|
|
|
:count => contest.contesting_softapplications.count)
|
|
|
|
%>
|
2014-09-17 14:58:13 +08:00
|
|
|
(<strong>
|
2014-09-12 16:45:03 +08:00
|
|
|
<span style="font-size: 17px">
|
|
|
|
<%= link_to(contest.contesting_softapplications.count,
|
|
|
|
show_attendingcontest_contest_path(contest),
|
|
|
|
:target => "_blank") %>
|
|
|
|
</span>
|
|
|
|
</strong>)
|
2014-05-08 18:58:33 +08:00
|
|
|
<% end %>
|
2014-04-03 22:38:18 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table></td>
|
2014-09-12 16:45:03 +08:00
|
|
|
<td width="200" align="right" class="a">
|
|
|
|
<span class="font_lighter">
|
|
|
|
<%= l :label_create_time %>: <%= format_time contest.created_on %>
|
|
|
|
</span>
|
|
|
|
</td>
|
2014-04-03 22:38:18 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2014-04-19 14:19:21 +08:00
|
|
|
<div class="bid-description" style="border-left: 1px solid #d9d8d8; border-bottom: 1px solid #d9d8d8; padding-left: 20px; padding-bottom: 10px; margin-bottom: 20px;">
|
|
|
|
<table width="100%">
|
|
|
|
<tr>
|
2014-09-17 14:58:13 +08:00
|
|
|
<!-- <td> <%#= contest.description%> </td> -->
|
2014-04-19 14:19:21 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</td>
|
2014-04-03 22:38:18 +08:00
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<% end %>
|
|
|
|
<div class="pagination">
|
|
|
|
<ul>
|
|
|
|
|
2014-09-12 16:45:03 +08:00
|
|
|
</ul>
|
2014-04-03 22:38:18 +08:00
|
|
|
</div>
|
|
|
|
|