2015-07-10 14:17:19 +08:00
|
|
|
<% for item in feed_list %>
|
2015-07-09 15:27:49 +08:00
|
|
|
<div class="message_list" id="nh_jours_<%= item.id %>" nhname="rec" data-id="<%= item.id %>">
|
|
|
|
<a href="<%= user_path(item.user) %>" class="users_pic fl">
|
|
|
|
<%= image_tag url_to_avatar(item.user),:width => '27',:height => '27' %>
|
|
|
|
</a>
|
|
|
|
<a href="<%= user_path(item.user) %>" title="<%= item.user.show_name %>" class="course_name fl c_blue02 ml5 mt5"><%= item.user.show_name %></a>
|
|
|
|
<% if item.at_user %>
|
|
|
|
<span class="fl c_dark mt5"> 回复</span>
|
|
|
|
<a href="<%= user_path(item.at_user) %>" title="<%= item.at_user.show_name %>" class="course_name fl c_blue02 ml5 mt5"><%= item.at_user.show_name %></a>
|
|
|
|
<% end %>
|
|
|
|
<span class="fl c_dark mt5"> : </span>
|
2015-07-16 11:37:03 +08:00
|
|
|
<div class="massage_txt fl mt5"><%=item.notes.html_safe%></div>
|
2015-07-09 15:27:49 +08:00
|
|
|
<% if JournalsForMessage.create_by_user? User.current %>
|
2015-07-10 14:17:19 +08:00
|
|
|
<a href="javascript:void(0)" nhname='reply_btn' class="fl mt5 c_purple ml5">回复</a>
|
2015-07-09 15:27:49 +08:00
|
|
|
<% end %>
|
|
|
|
<% if User.current.admin? || item.user.id == User.current.id %>
|
|
|
|
<a href="<%= url_for(:controller => 'words', :action=>"destroy", :object_id=>item.id,:user_id=>item.user.id) %>" data-confirm="您确定要删除吗?" data-remote="true" data-method="delete" class="fl mt5 c_purple ml5">删除</a>
|
|
|
|
<% end %>
|
2015-07-16 10:26:09 +08:00
|
|
|
<span class="massage_time fr"><%= time_tag(item.created_on).html_safe %></span>
|
2015-07-09 15:27:49 +08:00
|
|
|
<div class="cl"></div>
|
2015-07-10 14:17:19 +08:00
|
|
|
<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="<%= (item.m_parent_id.nil? || item.m_parent_id==0 ) ? item.id : item.m_parent_id %>">
|
|
|
|
<input id="reference_user_id" name="reference_user_id" type="hidden" value="<%= item.user.id %>">
|
|
|
|
<input id="reference_message_id" name="reference_message_id" type="hidden" value="<%= item.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>
|
|
|
|
</div>
|
2015-07-09 15:27:49 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|