无法评分时不显示评分项
This commit is contained in:
parent
1d1d2e8b91
commit
8998c60746
|
@ -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 %>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue