|
|
@ -18,7 +18,9 @@
|
|
|
|
<td colspan="2" valign="top"><strong>作业基础信息<%=@count %></strong></td>
|
|
|
|
<td colspan="2" valign="top"><strong>作业基础信息<%=@count %></strong></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td style="width: 570px; padding-left:40px; word-wrap: break-word; word-break: break-all">发布人员:<%= link_to @homework.user, user_path(@homework.user)%></td>
|
|
|
|
<td style="width: 570px; padding-left:40px; word-wrap: break-word; word-break: break-all">
|
|
|
|
|
|
|
|
发布人员:<%= link_to @homework.user, user_path(@homework.user)%>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td>发布时间:<%=format_time @homework.created_at %></td>
|
|
|
|
<td>发布时间:<%=format_time @homework.created_at %></td>
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
@ -26,9 +28,11 @@
|
|
|
|
<td style="padding-left: 40px">
|
|
|
|
<td style="padding-left: 40px">
|
|
|
|
<span>作业下载:</span>
|
|
|
|
<span>作业下载:</span>
|
|
|
|
<% options = {:author => true } %>
|
|
|
|
<% options = {:author => true } %>
|
|
|
|
<%= render :partial => 'attachments/app_link', :locals => {:attachments => @homework.attachments, :options => options} %>
|
|
|
|
<%= render :partial => 'app_link', :locals => {:attachments => @homework.attachments, :options => options} %>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td style="width: 240px; word-wrap: break-word; word-break: break-all">
|
|
|
|
|
|
|
|
所属任务:<%= link_to(@homework.bid.name, project_for_bid_path(@homework.bid))%>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td style="width: 240px; word-wrap: break-word; word-break: break-all">所属任务:<%= link_to(@homework.bid.name, project_for_bid_path(@homework.bid))%></td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
@ -49,7 +53,7 @@
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<table width="100%" border="0">
|
|
|
|
<table width="100%" border="0">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" valign="top"><strong><div style="font-size: 15px;">作业描述:</div></strong></td>
|
|
|
|
<td colspan="2" valign="top"><div style="font-size: 15px;"><strong>作业描述:</strong></div></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<% @homework.attachments.map do |attachment| %>
|
|
|
|
<% @homework.attachments.map do |attachment| %>
|
|
|
|
<% if attachment.description != nil && attachment.description != "" %>
|
|
|
|
<% if attachment.description != nil && attachment.description != "" %>
|
|
|
@ -67,16 +71,20 @@
|
|
|
|
<div class="underline-contests_one"></div>
|
|
|
|
<div class="underline-contests_one"></div>
|
|
|
|
|
|
|
|
|
|
|
|
<div style="height: auto; padding-bottom: 10px">
|
|
|
|
<div style="height: auto; padding-bottom: 10px">
|
|
|
|
<div style="font-size: 15px;"><strong>作业得分:</strong></div>
|
|
|
|
<div style="font-size: 15px;">
|
|
|
|
|
|
|
|
<strong>作业得分:</strong>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div style="overflow: hidden">
|
|
|
|
<div style="overflow: hidden">
|
|
|
|
<div style="margin-left: 15%; float: left">
|
|
|
|
<div style="margin-left: 15%; float: left">
|
|
|
|
<div style="padding-left: 45px; padding-bottom: 5px">得分比例</div>
|
|
|
|
<div style="padding-left: 45px; padding-bottom: 5px">得分比例</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<% 100.step(20,-20) do |star| %>
|
|
|
|
<% 100.step(20,-20) do |star| %>
|
|
|
|
<div data-kls="Softapplication" data-id="2" data-dimension="quality" data-average="3.25" class="rateable div_inline jDisabled" style="height: 20px; width: 115px; overflow: hidden; z-index: 1; position: relative;">
|
|
|
|
<div data-kls="HomeworkAttach" data-id="2" data-dimension="quality" data-average="3.25" class="rateable div_inline jDisabled"
|
|
|
|
|
|
|
|
style="height: 20px; width: 115px; overflow: hidden; z-index: 1; position: relative;">
|
|
|
|
<div class="jRatingColor" style="width: <%=star%>%;"></div>
|
|
|
|
<div class="jRatingColor" style="width: <%=star%>%;"></div>
|
|
|
|
<div class="jRatingAverage" style="width: 0px; top: -20px;"></div>
|
|
|
|
<div class="jRatingAverage" style="width: 0px; top: -20px;"></div>
|
|
|
|
<div class="jStar" style="width: 115px; height: 20px; top: -40px; background: url('/images/seems_rateable/stars.png') repeat-x scroll 0% 0% transparent;">
|
|
|
|
<div class="jStar" style="width: 115px; height: 20px; top: -40px;
|
|
|
|
|
|
|
|
background: url('/images/seems_rateable/stars.png') repeat-x scroll 0% 0% transparent;">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<%= @stars_status_map["star#{(star/20).to_s}".to_sym] %>
|
|
|
|
<%= @stars_status_map["star#{(star/20).to_s}".to_sym] %>
|
|
|
@ -85,7 +93,11 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="float: left; padding-left: 100px; padding-top:35px ">
|
|
|
|
<div style="float: left; padding-left: 100px; padding-top:35px ">
|
|
|
|
<div style="padding-left: 25px;">最终得分</div>
|
|
|
|
<div style="text-align: center">最终得分</div>
|
|
|
|
|
|
|
|
<div style="padding-top: 1px; font-size: 15px; color: blue;text-align: center">
|
|
|
|
|
|
|
|
<%= @homework.average(:quality).try(:avg).try(:round, 2).to_s %>
|
|
|
|
|
|
|
|
分
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div style="padding-top: 3px">
|
|
|
|
<div style="padding-top: 3px">
|
|
|
|
<%= rating_for @homework, :static => true, dimension: :quality, class: 'rateable div_inline' %>
|
|
|
|
<%= rating_for @homework, :static => true, dimension: :quality, class: 'rateable div_inline' %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -102,6 +114,18 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="underline-contests_one"></div>
|
|
|
|
<div class="underline-contests_one"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
<div style="height: auto; padding-bottom: 10px">
|
|
|
|
|
|
|
|
<div style="font-size: 15px">
|
|
|
|
|
|
|
|
<strong>作业综评:</strong>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="text-align: center;">评分:
|
|
|
|
|
|
|
|
<%= rating_for @homework, :static => true, dimension: :quality, class: 'rateable div_inline' %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="underline-contests_one"></div>
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
<div style="height: 50px">
|
|
|
|
<div style="height: 50px">
|
|
|
|
<div style="font-size: 15px"><strong>作业评论:</strong></div>
|
|
|
|
<div style="font-size: 15px"><strong>作业评论:</strong></div>
|
|
|
|
<div style="text-align: center;">评分:
|
|
|
|
<div style="text-align: center;">评分:
|
|
|
@ -121,5 +145,4 @@
|
|
|
|
<%= render :partial => 'showjour', :locals => {:jour => @jours} %>
|
|
|
|
<%= render :partial => 'showjour', :locals => {:jour => @jours} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<%#= link_to '返回竞赛页面', show_softapplication_contest_path(@softapplication.contest) %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|