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>
|
|
|
|
<td colspan="2" valign="top" width="50" ><%= link_to(image_tag(url_to_avatar(contest.author), :class => 'avatar'), user_path(contest.author), :class => "avatar") %></td>
|
|
|
|
<td>
|
|
|
|
<table width="100%" border="0">
|
|
|
|
<tr>
|
2014-04-19 14:19:21 +08:00
|
|
|
<td colspan="2" valign="top"><strong><%= link_to(contest.author, user_path(contest.author), :class => 'bid_user') %>: <%= link_to(contest.name, show_contest_contest_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-04-26 09:32:50 +08:00
|
|
|
<strong><%= l(:label_contests_reward_method) %>: <span style="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">
|
|
|
|
<!-- <span class="font_lighter"><%= l(:label_contest_project, :count => contest.contesting_projects.count) %>(<strong><span style="font-size: 17px"><%= link_to(contest.contesting_projects.count, show_project_contest_path(contest), :target => "_blank") %></span></strong>)</span>
|
|
|
|
<span class="font_lighter"><%= l(:label_contest_softapplication, :count => contest.contesting_softapplications.count) %>(<strong><span style="font-size: 17px"><%= link_to(contest.contesting_softapplications.count, show_softapplication_contest_path(contest), :target => "_blank") %></span></strong>)</span> -->
|
|
|
|
<% if contest.id == 2 or contest.id == 3 or contest.id == 6 %>
|
2014-05-09 18:28:16 +08:00
|
|
|
<%= 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-05-08 19:00:54 +08:00
|
|
|
<%= l(:label_contest_work, :count => contest.contesting_softapplications.count) %>(<strong><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>
|
|
|
|
<td width="200" align="right" class="a"><span class="font_lighter"> <%= l :label_create_time %>: <%= format_time contest.created_on %></span></td>
|
|
|
|
</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>
|
|
|
|
<!-- <td> <%= contest.description%> </td> -->
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</td>
|
2014-04-03 22:38:18 +08:00
|
|
|
</tr>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<% end %>
|
|
|
|
<div class="pagination">
|
|
|
|
<ul>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
</div>
|
|
|
|
|