<div class="item-img fr">
  <% iamge_path = get_image_path_from_content(activity.content) %>
  <% if iamge_path.nil? %>
      <img src="/images/org_new_style/default-img.jpg"  width="180" height="115">
  <% else %>
      <img src="/files/uploads/image<%= iamge_path %>" width="180" height="115">
  <% end %>

</div>
<div class="article-lwrap clearfix">
<div class="item-txt fl">
  <h3 class="item-title">
    <% if activity.parent_id.nil? %>
        <%= link_to activity.subject.to_s.html_safe, board_message_url_in_org(activity.board.id,activity.id), :class => "title-detail" %>
    <% else %>
        <%= link_to activity.parent.subject.to_s.html_safe, board_message_url_in_org(activity.board.id,activity.id), :class => "title-detail" %>
    <% end %>
  </h3>
  <% if activity.parent_id.nil? %>
      <% content = activity.content %>
  <% else %>
      <% content = activity.parent.content %>
  <% end %>
  <div class="item-bd">
    <span class="fl"><%= content.to_s.html_safe %></span>
    <% if activity.parent_id.nil? %>
        <%= link_to "[查看全文]", board_message_url_in_org(activity.board.id,activity.id), :class => "read-more fl" %>
    <% else %>
        <%= link_to "[查看全文]", board_message_url_in_org(activity.board.id,activity.id), :class => "read-more fl" %>
    <% end %>
  </div>
  <div class="item-btm clearfix">
    <ul class="fl left-info">
      <li class="hd-pic">
        <%= link_to image_tag(url_to_avatar(activity.author),:width => "20", :height => "20"), user_path(activity.author), :class => "publisher-hd fl", :target => "_blank" %>
        <a class="publisher-name fl" href="#" target="_blank">
          <%= link_to activity.author.realname.nil? ? activity.author.login : activity.author.realname, user_path(activity.author), :class => "publisher-name fl", :target => "_blank" %>
        </a>
      </li>
      <li class="pass-time"><span><%= format_date(activity.updated_on) %></span></li>
    </ul>
    <div class="fr right-info">
      <span> <%= activity.children.count %></span>
    </div>
  </div>
</div>
<div class="cl"></div>
</div>

