53 lines
2.4 KiB
Plaintext
53 lines
2.4 KiB
Plaintext
<% if @org_acts.blank? %>
|
||
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||
<% else %>
|
||
<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" %> >
|
||
<a class = "sn-link-grey2"><%= @org_subfield.name %></a>
|
||
</div>
|
||
</div>
|
||
<div class="sn-inner-newslist mt15">
|
||
<h2 class="sn-inner-newsh2"><%= @org_subfield.name %></h2>
|
||
<ul>
|
||
<% @org_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) %>
|
||
<% reply_count = org_reply_count_type(obj) %>
|
||
<li>
|
||
<div class="sn-circle fl"></div>
|
||
<% if obj.act_type == "Message" %>
|
||
<%= link_to title, board_message_path(obj.act.board.id, obj.act.id), :class => "sn-newslist-titile fl", :target => "_blank" %>
|
||
<% elsif obj.act_type == "News" %>
|
||
<%= link_to title, news_path(obj.act.id), :class => "sn-newslist-titile fl", :target => "_blank" %>
|
||
<% elsif obj.act_type == "HomeworkCommon" %>
|
||
<%= link_to title, student_work_index_url_in_org(obj.act.id), :class => "sn-newslist-titile fl", :target => "_blank" %>
|
||
<% elsif obj.act_type == "Issue" %>
|
||
<%= link_to title, issue_path(obj.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>
|
||
</div>
|
||
</div>
|
||
<% end %>
|