<a href="/#" title="">
  <div class="course-list-img">
    <% iamge_path = get_image_path_from_content(activity.content) %>
    <% if iamge_path.nil? %>
        <%= link_to image_tag("/images/org_new_style/default-img.jpg", :width => "370", :height => "220"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank" %>
    <% else %>
        <%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "370", :height => "220"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank" %>
    <% end %>
  </div>
  <h5>
    <% if activity.parent_id.nil? %> <!--+"(帖子标题)"-->
        <%= link_to activity.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank' %>
    <% else %>
        <%= link_to activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank' %>
    <% end %>
  </h5>
  <div class="item-btm clearfix">
  <%=link_to activity.try(:author).try(:realname).nil? ? activity.try(:author).try(:login) : activity.try(:author).try(:realname), user_path(activity.author), :class=>"publisher-name fl", :target => "_blank" %></a>
    <p class="pass-time fl"><span><%= format_date activity.updated_on %></span></p>
    <div class="fr right-info"> <span> <%= activity.children.count %></span></div>
  </div>
</a>