i用户互动留言不显示

This commit is contained in:
yanxd 2013-12-14 10:22:11 +08:00
parent 3484632ce8
commit 586f112b4f
2 changed files with 2 additions and 0 deletions

View File

@ -240,6 +240,7 @@
</div> </div>
<%= render :partial => 'layouts/base_footer'%> <%= render :partial => 'layouts/base_footer'%>
<%= debug(params) if Rails.env.development? %>
</div> </div>
<div id="ajax-indicator" style="display:none;"> <div id="ajax-indicator" style="display:none;">
<span><%= l(:label_loading) %></span> <span><%= l(:label_loading) %></span>

View File

@ -18,6 +18,7 @@
<% unless @activity.empty? %> <% unless @activity.empty? %>
<div id="activity"> <div id="activity">
<% @activity.each do |e| %> <% @activity.each do |e| %>
<% next if( (e.act_type == 'JournalsForMessage') && !(User.current.id.eql?(params[:id].to_i)) ) %>
<% act = e.act %> <% act = e.act %>
<% unless act.nil? %> <% unless act.nil? %>