<div class="por_news" style="display:<%= field.hide == 0 ? 'block':'none' %>;">
  <h2 class="por_h2_index clear"><%= field.name %></h2>
  <% if @acts.blank? %>
      <p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
  <% else %>
      <ul class="por_news_list clear">
        <% @acts.each do |obj| %>
            <% user = org_user_by_type(obj) %>
            <% title = org_title_by_type(obj) %>
            <% content = org_content_by_type(obj) %>
            <% time = org_time_by_type(obj) %>
            <li>
              <%= link_to image_tag(url_to_avatar(user),:width => "43", :height => "43", :class => "por_users_img"), user_path(user), :target => "_blank", :class => "fl" %>
              <div class="por_news_txt fl">
                <p class="por_news_p fl">
                  <%= link_to user.show_name, user_path(user), :class => "por_hot_name link-blue fl", :target => "_blank" %>
                  <span class="fl">&nbsp;:&nbsp;</span>
                  <% if obj.act_type == "Message" %>
                      <%= link_to title, board_message_path(obj.act.board.id, obj.act.id) %>
                  <% elsif obj.act_type == "News" %>
                      <%= link_to title, news_path(obj.act.id) %>
                  <% elsif obj.act_type == "HomeworkCommon" %>
                      <%= link_to title, student_work_index_url_in_org(obj.act.id) %>
                  <% elsif obj.act_type == "Issue" %>
                      <%= link_to title, issue_path(obj.act.id) %>
                  <% end %>
                </p>
                <p><span class="por_time fl"><%= time_from_now(time) %> </span>
                  <!--<a href="javascript:void(0);" target="_blank" class="por_zan fr">50</a>-->
                </p>
              </div>
              <div class="cl"></div>
            </li>
        <% end %>
      </ul>
  <% end %>
</div><!--por_news end-->