<% for item in feed_list %>
<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">&nbsp;回复</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">&nbsp;:&nbsp;</span>
  <div class="massage_txt fl mt5"><%=item.notes.html_safe%></div>
  <% if JournalsForMessage.create_by_user? User.current %>
  <a href="javascript:void(0)" nhname='reply_btn' class="fl mt5 c_purple ml5">回复</a>
  <% 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 %>
  <span class="massage_time fr"><%= time_tag(item.created_on).html_safe %></span>
  <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="<%= (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>
</div>
<% end %>
