<div class="resources mt10" id="user_activity_<%= user_activity_id %>">
  <div class="homepagePostBrief">
    <div class="homepagePostPortrait">
      <%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id), :alt => "用户头像" %>
      <%= render :partial => 'users/show_detail_info', :locals => {:user => activity.author} %>
    </div>
    <div class="homepagePostDes">
      <div class="homepagePostTo break_word">
        <% if activity.try(:author).try(:realname) == ' ' %>
            <%= link_to activity.try(:author), user_path(activity.author_id), :class => "newsBlue mr15" %>
        <% else %>
            <%= link_to activity.try(:author).try(:realname), user_path(activity.author_id), :class => "newsBlue mr15" %>
        <% end %> TO
        <%= link_to activity.project.name.to_s+" | 项目附件", project_news_index_path(activity.project), :class => "newsBlue ml15" %>
      </div>
      <div class="homepagePostTitle break_word hidden fl m_w600">
        <%= link_to format_activity_title("#{l(:label_attachment)}: #{activity.filename}"), {:controller => 'attachments', :action => 'show', :id => activity.id}, :class => "problem_tit fl fb" %>
        <%#= link_to activity.title.to_s, news_path(activity), :class => "postGrey" %>
      </div>
      <div class="cl"></div>
      <div class="homepagePostDate">
        发布时间：<%= format_time(activity.created_on) %>
      </div>
      <p class="mt5 break_word"><%= textAreailizable activity, :description %><br/></p>
      <!--<div class="homepagePostIntro break_word upload_img list_style maxh360 table_maxWidth" id="activity_description_<%= user_activity_id %>">
        <div id="intro_content_<%= user_activity_id %>">
          <%#= activity.description.html_safe %>
        </div>
      </div>-->
      <div class="cl"></div>

    </div>
    <div class="cl"></div>
  </div>
</div>