2015-08-01 15:14:45 +08:00
|
|
|
<div class="message_list break_word" id="<%= jour.id %>" nhname="rec" data-id="<%= jour.id %>">
|
2015-07-30 10:45:58 +08:00
|
|
|
<%= 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>
|
2015-08-01 15:14:45 +08:00
|
|
|
<%= link_to "#{jour.user.nickname} : ".html_safe, user_path(jour.user),:class => 'fl c_blue02 f14 fb mb5', :target => "_blank"%>
|
2015-07-30 10:45:58 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div>
|
|
|
|
<%= jour.notes.html_safe %>
|
|
|
|
</div>
|
|
|
|
</div><!--mes_box end-->
|
2015-07-29 17:41:10 +08:00
|
|
|
<span class="c_grey fr mb10">
|
|
|
|
<%= time_tag(jour.created_on).html_safe %>
|
|
|
|
</span>
|
2015-07-30 10:45:58 +08:00
|
|
|
<div class="fr cr">
|
|
|
|
<%= link_to l(:button_reply),'javascript:void(0);',:nhname=>"reply_btn", :class => "ml5 c_purple" %>
|
|
|
|
<% 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 class="cl"></div>
|
|
|
|
<div nhname='div_form' class="mt10 ml80" style="display:none;">
|
|
|
|
<form action="<%= url_for(:controller => 'words', :action => 'create_reply') %>" data-remote="true" method="post">
|
|
|
|
<input id="reference_id" name="reference_id" type="hidden" value="<%= (jour.m_parent_id.nil? || jour.m_parent_id==0 ) ? jour.id : jour.m_parent_id %>">
|
|
|
|
<input id="reference_user_id" name="reference_user_id" type="hidden" value="<%= jour.user.id %>">
|
|
|
|
<input id="reference_message_id" name="reference_message_id" type="hidden" value="<%= jour.id %>">
|
|
|
|
<input id="show_name" name="show_name" type="hidden" value="true">
|
|
|
|
<textarea name='user_notes' style="display:none;"></textarea>
|
|
|
|
<p nhname='contentmsg'></p>
|
|
|
|
<div nhname='toolbar_container' style="float:left;padding-top:3px;"></div>
|
|
|
|
<a nhname="cancel_btn" href="javascript:;" class="grey_n_btn fr" style="margin-top:3px;">取消</a>
|
|
|
|
<a nhname="submit_btn" href="javascript:;" class="blue_n_btn fr mr5" style="margin-top:3px;">发布</a>
|
|
|
|
</form>
|
|
|
|
<div class="cl"></div>
|
2015-07-29 17:41:10 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
2015-07-30 10:45:58 +08:00
|
|
|
<div nhname="reply_list">
|
|
|
|
<% fetch_user_leaveWord_reply(jour).each do |reply|%>
|
|
|
|
<%= render :partial => 'user_jour_reply', :locals => {:reply => reply} %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2015-07-29 17:41:10 +08:00
|
|
|
</div><!--message_list end-->
|