diff --git a/app/views/homework_attach/_homework.html.erb b/app/views/homework_attach/_homework.html.erb index 802a021a4..c2b87832c 100644 --- a/app/views/homework_attach/_homework.html.erb +++ b/app/views/homework_attach/_homework.html.erb @@ -32,7 +32,7 @@ <% unless is_student_batch_homework %> <%= l(:label_teacher_score)%>: - <%= homework.t_score.nil? ? l(:label_without_score) : format("%.2f",homework.t_score)%> + <%= (homework.t_score.nil? || (homework.t_score && homework.t_score.to_i == 0)) ? l(:label_without_score) : format("%.2f",homework.t_score)%>    <% end %> diff --git a/app/views/homework_attach/_review.html.erb b/app/views/homework_attach/_review.html.erb index 6663bc6fe..b4508d225 100644 --- a/app/views/homework_attach/_review.html.erb +++ b/app/views/homework_attach/_review.html.erb @@ -26,12 +26,14 @@ <%= format_time(review.created_at) %> - - <%= l(:label_work_rating) %>: - -
- <%= render :partial => 'homework_attach/show_static_star', :locals => {:start_score => review.stars } %> -
+ <% if review.stars && review.stars.to_i > 0%> + + <%= l(:label_work_rating) %>: + +
+ <%= render :partial => 'homework_attach/show_static_star', :locals => {:start_score => review.stars } %> +
+ <% end %>

<%= textilizable jour.nil? ? "" : jour.notes%>