<div class="sn-inner-body">
  <div class="sn-innner-content">
    <div class="sn-row sn-bg-white">
      <div class="sn-font-grey3 f14">
        您的位置：<%= link_to "首页", organization_path(@organization), :class => "sn-link-grey2" %> &gt;
        <a class = "sn-link-grey2"><%= @org_subfield.name %></a>
      </div>
    </div>
    <% if @subfield_acts.blank? %>
        <p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
    <% else %>

        <div class="sn-inner-newslist mt15">
          <h2 class="sn-inner-newsh2"><%= @org_subfield.name %></h2>
          <ul>
            <% @subfield_acts.each do |act| %>
                <% title = subfield_title_type(act) %>
                <% time = subfield_time_type(act) %>
                <% reply_count = subfield_reply_count_type(act) %>
                <% document = act.org_act %>
                <li>
                  <div class="sn-circle fl"></div>
                  <% if act.org_act_type == "OrgDocumentComment" %>
                      <%=link_to title, org_document_comment_path(act.org_act, :organization_id => @organization.id), :class => "sn-newslist-titile fl", :target => "_blank" %>
                  <% elsif act.org_act_type == "News" %>
                      <%=link_to title, news_path(act.org_act), :class => "sn-newslist-titile fl", :target => "_blank" %>
                  <% elsif act.org_act_type == "Message" %>
                      <%=link_to title, board_message_path(act.org_act.board.id, act.org_act.id), :class => "sn-newslist-titile fl", :target => "_blank" %>
                  <% end %>
                  <span class=" txt-grey fr"><%= format_date(time) %></span>
                  <span class="sn-newslist-reply fr mr10 txt-grey">回复（<%= reply_count %>）</span>
                  <div class="cl"></div>
                </li>
            <% end %>
          </ul>

          <!--<div>-->
          <!--<ul class="sn-inner-pages" id="pages" style="margin-top: 5px;">-->
          <!--<%#= pagination_links_full @atta_pages, @atta_count, :per_page_links => true, :remote => @is_remote, :flag => true %>-->
          <!--<div class="cl"></div>-->
          <!--</ul>-->
          <!--</div>-->
        </div>
    <% end %>
  </div>
</div>

