调整竞赛中参赛作品各项指标的位置

This commit is contained in:
wanglinchun 2014-05-14 17:15:19 +08:00
parent d019a4d9ce
commit 75853bca01
1 changed files with 17 additions and 17 deletions

View File

@ -229,7 +229,7 @@
<!-- 评价显隐控制按钮--> <!-- 评价显隐控制按钮-->
<% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %> <% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %>
<td valign="top" align="right" width="10%"> <td valign="top" align="right" width="10%">
<span> <%= toggle_link '评', c_project.id.to_s %></span> <span> <%= toggle_link '评', c_project.id.to_s %></span>
<!-- 评价应标项目的表单 --> <!-- 评价应标项目的表单 -->
<span style="display: none; vertical-align: top " id = '<%= c_project.id %>'> <span style="display: none; vertical-align: top " id = '<%= c_project.id %>'>
<%= form_for "set_reward_project",:remote=>true,:url=>set_reward_project_contest_path do |f| %> <%= form_for "set_reward_project",:remote=>true,:url=>set_reward_project_contest_path do |f| %>
@ -264,29 +264,31 @@
<td> <%= link_to(c_softapplication.softapplication.name, softapplication_path(c_softapplication.softapplication), :target => '_blank') %> </td> <td> <%= link_to(c_softapplication.softapplication.name, softapplication_path(c_softapplication.softapplication), :target => '_blank') %> </td>
</tr></br> </tr></br>
</div> </div>
<div style="padding-left: 68px"> <div style="padding-left: 68px">
<tr> <tr>
<td>简介:</td> <td><strong>简介:</strong></td>
<td> <%= c_softapplication.softapplication.description.truncate(90, omission: '...') %> </td> <td> <%= c_softapplication.softapplication.description.truncate(90, omission: '...') %> </td>
</tr></br> </tr></br>
</div> </div>
<div style="padding-left: 68px; padding-bottom: 8px">
<span>发布时间:<%= format_time c_softapplication.created_at %></span> <div style="padding-left: 68px; pading-bottom: 8px">
<span style="padding-left: 50px">最终得分:<%= c_softapplication.softapplication.average(:quality).try(:avg).try(:round, 2).to_i.to_s%>分</span> <span><strong>发布时间:</strong><%= format_time c_softapplication.created_at %></span>
<span style="padding-left: 240px"><strong>发布人员:</strong><%= c_softapplication.softapplication.user.name %></span>
</div> </div>
<!--获奖及教师评奖--> <!--获奖及教师评奖-->
<div style="padding-left: 68px"> <div style="padding-left: 18px">
<tr> <span style="padding-left: 50px"><strong>最终得分:</strong></span><span style="color: red"><%= c_softapplication.softapplication.average(:quality).try(:avg).try(:round, 2).to_i.to_s%>分</span>
<td style="color: #ec6300;" align="right" valign="0.1em" width="16%"> <span style="padding-left: 334px">
<td>
<strong> <strong>
<span id="reward_result_<%=c_softapplication.id%>"> <!-- 调用js进行刷新 --> <span id="reward_result_<%=c_softapplication.id%>" > <!-- 调用js进行刷新 -->
<% if get_prize(c_softapplication).nil? or get_prize(c_softapplication) == "" %> <% if get_prize(c_softapplication).nil? or get_prize(c_softapplication) == "" %>
<% if @contest.deadline < Date.today %> <% if @contest.deadline < Date.today %>
<%= l(:label_noawards)%> <span><%= l(:label_noawards)%></span>
<% else%> <% else%>
<%= l(:label_noawards_current)%> <span style="color: red"><%= l(:label_noawards_current)%></span>
<% end %> <% end %>
<% else %> <% else %>
<% case get_prize(c_softapplication) %> <% case get_prize(c_softapplication) %>
@ -313,7 +315,7 @@
<!-- 评价显隐控制按钮--> <!-- 评价显隐控制按钮-->
<% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %> <% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %>
<td valign="top" align="right" width="10%"> <td valign="top" align="right" width="10%">
<span> <%= toggle_link '评', c_softapplication.id.to_s %></span> <span> <%= toggle_link '评', c_softapplication.id.to_s %></span>
<!-- 评价应标项目的表单 --> <!-- 评价应标项目的表单 -->
<span style="display: none; vertical-align: top " id = '<%= c_softapplication.id %>'> <span style="display: none; vertical-align: top " id = '<%= c_softapplication.id %>'>
<%= form_for "set_reward_softapplication",:remote=>true,:url=>set_reward_softapplication_contest_path do |f| %> <%= form_for "set_reward_softapplication",:remote=>true,:url=>set_reward_softapplication_contest_path do |f| %>
@ -330,9 +332,7 @@
</span> </span>
</td> </td>
<% end %> <% end %>
</tr> </span>
<tr>
</tr>
</div> </div>
</div> </div>
<% end %> <% end %>