2014-05-27 20:01:21 +08:00
|
|
|
<% is_teacher = is_course_teacher User.current,homework.bid.courses.first %>
|
|
|
|
<% if comprehensive_evaluation != nil && comprehensive_evaluation.count > 0 %>
|
2014-05-28 08:50:38 +08:00
|
|
|
<% stars = homework.rates(:quality).where("rater_id = #{comprehensive_evaluation.first.user.id}").select("stars").first %>
|
2014-05-27 20:01:21 +08:00
|
|
|
<div style="height: 100px; padding-bottom: 10px">
|
|
|
|
<div style="font-size: 15px">
|
|
|
|
<strong>作业综评:</strong>
|
|
|
|
<span class="user" style="font-size: 15px">
|
|
|
|
<div data-kls="HomeworkAttach" data-id="2" data-dimension="quality" data-average="3.25" class="rateable div_inline jDisabled"
|
|
|
|
style="height: 15px; width: 100px; overflow: hidden; z-index: 1; position: relative;">
|
2014-05-28 08:50:38 +08:00
|
|
|
<% if stars != nil %>
|
|
|
|
<div class="jRatingColor" style="width: <%=stars.stars * 2 * 10 %>%;"></div>
|
|
|
|
<% else %>
|
|
|
|
<div class="jRatingColor" style="width: 0px;"></div>
|
|
|
|
<% end %>
|
2014-05-27 20:01:21 +08:00
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div style="font-size: 14px;">
|
|
|
|
<div style="margin-left: 20px;margin-bottom: 10px;margin-top: 10px;"> <%= comprehensive_evaluation.first.notes%> </div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<% if is_teacher %>
|
|
|
|
<div style="height: 200px; padding-bottom: 10px">
|
|
|
|
<div style="font-size: 15px">
|
|
|
|
<strong>作业综评:</strong>
|
|
|
|
</div>
|
2014-06-05 14:00:18 +08:00
|
|
|
<%= render :partial => 'evaluation', :locals => {:homework => homework} %>
|
2014-05-27 20:01:21 +08:00
|
|
|
<div>
|
|
|
|
<%= render :partial => 'addjour', :locals => {:homework_attach => homework, :sta => 0,:is_comprehensive_evaluation => 1} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<div style="height: 80px; padding-bottom: 10px">
|
|
|
|
<div style="font-size: 15px">
|
|
|
|
<strong>作业综评:</strong>
|
|
|
|
</div>
|
|
|
|
<div style="text-align: center;font-size: 15px;color: #15BCCC;vertical-align:middle;padding-top: 15px; "><strong>老师还未进行评价!</strong></div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|