28 lines
1.6 KiB
Plaintext
28 lines
1.6 KiB
Plaintext
<div class="ping_C">
|
||
<div class="ping_dispic"><a target="_blank" href="#"><%= image_tag(url_to_avatar(jour.user)) %></a></div>
|
||
<div class="ping_discon">
|
||
<div class="ping_distop">
|
||
<span><%= link_to jour.user, user_path(jour.user),:style => " font-weight:bold; color:#15bccf; margin-right:30px; background:none;", :target => "_blank"%></span>
|
||
<span style="color:#a6a6a6; margin-right:40px; margin-left:30px;"><%= jour.created_on %></span><span style="font-weight:bold; color:#a6a6a6; ">
|
||
<%= l(:label_work_rating) %>:
|
||
<%= render :partial => 'show_score', locals: {:stars => get_homework_score(jour.user,@homework ) } %>
|
||
</span>
|
||
<div class="cl"></div>
|
||
<p><%= textilizable jour.notes%></p>
|
||
</div>
|
||
<div class="ping_disfoot">
|
||
<% ids = 'project_respond_form_'+ jour.id.to_s%>
|
||
<span>
|
||
<%= 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 %>
|
||
</span>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="cl"></div>
|
||
</div> |