500问题

This commit is contained in:
huang 2016-06-17 18:03:58 +08:00
parent e4105b538a
commit fce93de296
1 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@
<% end %>
<% end %>
</div>
<% unless acts[1..4].nil? %>
<% unless acts[1..4].blank? %>
<% acts[1..4].each do |activity| %>
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' %>
<% document = activity.org_act %>
@ -110,10 +110,10 @@
<% end %>
<% end %>
</div>
<% unless acts[5..16].nil? %>
<% unless acts[5..16].blank? %>
<div class="fl">
<ul class="por_post_right por_post_list">
<% acts[6..16].each do |activity| %>
<% acts[5..16].each do |activity| %>
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' %>
<% document = activity.org_act %>
<li><%= link_to "<span class='post_icons_grey fl'></span>#{document.title}".html_safe, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), class: 'por_hidden_w270 link-black', :target => "_blank" %></li>