2015-07-29 17:41:10 +08:00
|
|
|
<div class="message_list" id="<%= jour.id%>">
|
|
|
|
<div>
|
|
|
|
<%= link_to image_tag(url_to_avatar(jour.user),:width => '46',:height => '46'), user_path(jour.user),:class => "users_pic fl" %>
|
|
|
|
<div class="fl ml5 mes_box mb10" >
|
|
|
|
<div>
|
|
|
|
<%= link_to "#{jour.user.login} : ".html_safe, user_path(jour.user),:class => 'fl c_blue02 f14 fb mb5', :target => "_blank"%>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div>
|
|
|
|
<%= jour.notes.html_safe %>
|
|
|
|
</div>
|
|
|
|
</div><!--mes_box end-->
|
|
|
|
<span class="c_grey fr mb10">
|
|
|
|
<%= time_tag(jour.created_on).html_safe %>
|
|
|
|
</span>
|
|
|
|
<div class="fr cr">
|
|
|
|
<%= link_to l(:button_reply),'javascript:void(0);',:nhname=>"reply_btn", :class => "ml5 c_purple" %>
|
2015-07-29 18:26:04 +08:00
|
|
|
|
2015-07-29 17:41:10 +08:00
|
|
|
<% if User.current.admin? || jour.user == User.current%>
|
|
|
|
<%= link_to(l(:label_newfeedback_delete), {:controller => 'words', :action => 'destroy', :object_id => jour, :user_id => jour.user},
|
|
|
|
:remote => true, :confirm => l(:text_are_you_sure), :method => 'delete', :class => "ml5 c_purple", :title => l(:button_delete)) %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
<% fetch_user_leaveWord_reply(jour).each do |reply|%>
|
|
|
|
<div id = '<%= reply.id %>'>
|
|
|
|
<% parent_jour = JournalsForMessage.where("id = #{reply.m_reply_id}").first %>
|
|
|
|
<div class="mes_box02">
|
|
|
|
<%= link_to image_tag(url_to_avatar(reply.user),:width => '32',:height => '32'), user_path(reply.user),:class => "users_pic_sub fl mr5" %>
|
|
|
|
<div class=" mes_box02_info fl">
|
|
|
|
<%= link_to "#{reply.user.login} : ".html_safe, user_path(reply.user),:class => 'course_name fl c_blue02 ', :target => "_blank"%>
|
|
|
|
<span class="fl c_grey"> 回复: </span>
|
|
|
|
<%= link_to "#{parent_jour.user.login} : ".html_safe, user_path(parent_jour.user),:class => 'course_name fl c_blue02 mr5 ', :target => "_blank"%>
|
|
|
|
<div class="cl">
|
|
|
|
<%= reply.notes.html_safe %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span class="c_grey fr">
|
|
|
|
<%= time_tag(reply.created_on).html_safe%>
|
|
|
|
</span>
|
|
|
|
<div class="fr cr">
|
|
|
|
<%= link_to l(:button_reply),'javascript:void(0);',:nhname=>"reply_btn", :class => "ml5 c_purple" %>
|
|
|
|
<% if User.current.admin? || reply.user == User.current%>
|
|
|
|
<%= link_to(l(:label_newfeedback_delete), {:controller => 'words', :action => 'destroy', :object_id => reply, :user_id => reply.user},
|
|
|
|
:remote => true, :confirm => l(:text_are_you_sure), :method => 'delete', :class => "c_purple ml5", :title => l(:button_delete)) %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div><!--mes_box02 end-->
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div><!--message_list end-->
|