参赛作品: <%= link_to(c_project.project.name, project_path(c_project.project), :target => '_blank') %>
+
+
+
+
+ <% if get_prize(c_project).nil? or get_prize(c_project) == "" %>
+ <% if @contest.deadline < Date.today %>
+ <%= l(:label_noawards)%>
+ <% else%>
+ <%= l(:label_noawards_current)%>
+ <% end %>
+ <% else %>
+ <% case get_prize(c_project) %>
+ <% when '-1' %>
+ <%= image_tag("/images/bid/special_reward.png")%>
+ <% when '0' %>
+ <%= image_tag("/images/bid/first_reward.png")%>
+ <% when '1' %>
+ <%= image_tag("/images/bid/second_reward.png")%>
+ <% when '2' %>
+ <%= image_tag("/images/bid/third_reward.png")%>
+ <% when '3' %>
+ <%= image_tag("/images/bid/forth_reward.png")%>
+ <% when '4' %>
+ <%= image_tag("/images/bid/fifth_reward.png")%>
+ <% when '5' %>
+ <%= image_tag("/images/bid/qualified.png")%>
+ <% end %>
+ <% end %>
+
+
+ |
+
+
+ <% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %>
+
+ <%= toggle_link '评奖', c_project.id.to_s %>
+
+
+ <%= form_for "set_reward_project",:remote=>true,:url=>set_reward_project_contest_path do |f| %>
+ <%= f.text_field :c_id,:style => "display:none",:value => c_project.id,:size=>"0" %>
+ <%= f.select :reward,"
+
+
+
+
+
+ ".html_safe %>
+ <%= f.submit "提交",:class=>"submit" %>
+ <% end %>
+
+ |
+ <% end %>
+
+