<% jours.nil? || jours.count == 0 || jours.each do |jour| %>
<% if show_name %> <%= link_to image_tag(url_to_avatar(jour.user)) , user_path(jour.user), :target =>"_blank" %> <% else %> <%= image_tag(url_to_avatar(nil))%> <%= l(:label_anonymous) %> <% end %>
<%= link_to jour.user, user_path(jour.user),:style => " font-weight:bold; color:#15bccf; margin-right:30px; background:none;", :target => "_blank"%> <%= jour.created_on %> <% if show_score %> <%= l(:label_work_rating) %>: <%= render :partial => 'show_score', locals: {:stars => get_homework_score(jour.user,@homework ) } %> <% end %>

<%= textilizable jour.notes%>

<% ids = 'project_respond_form_'+ jour.id.to_s%> <%= link_to l(:label_projects_feedback_respond),'', {:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{ids}'), $('##{ids} textarea'), '#{l(:label_reply_plural)} #{jour.user.name}: '); $('##{ids} textarea') ;return false;"} %> <% if jour.user==User.current|| User.current.admin? %> <%= link_to(l(:label_bid_respond_delete), {:controller => 'homework_attach', :action => 'destroy_jour', :object_id => jour, :user_id => jour.user}, :remote => true, :confirm => l(:text_are_you_sure), :title => l(:button_delete)) %> <% end %>
<% end %>