无法评分时不显示评分项

This commit is contained in:
z9hang 2014-11-05 10:53:53 +08:00
parent 1d1d2e8b91
commit 8998c60746
1 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
<% if is_comprehensive_evaluation == 3 || User.current == homework.user%> <% if is_comprehensive_evaluation == 3 || User.current == homework.user%>
<%= l(:label_work_rating) %> <!-- <#%= l(:label_work_rating) %>
<%= render :partial => 'show_score', locals: {:stars => totle_score} %> <%#= render :partial => 'show_score', locals: {:stars => totle_score} %> -->
<% elsif is_comprehensive_evaluation == 2 %> <% elsif is_comprehensive_evaluation == 2 %>
<%= l(:label_work_rating) %>
<% if has_evaluation %> <% if has_evaluation %>
<%= render :partial => 'show_score', locals: {:stars => totle_score} %>
<% else %> <% else %>
<%= l(:label_work_rating) %>
<%= rating_for homework, dimension: :quality, class: 'rateable div_inline' %> <%= rating_for homework, dimension: :quality, class: 'rateable div_inline' %>
<% end %> <% end %>