查看别人的页面时不显示“全部设为已读”

This commit is contained in:
huang 2015-09-11 15:55:51 +08:00
parent 4d4b48ef99
commit 3da6593720
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
<% if params[:type].nil? || params[:type] == "unviewed" %>
<div class="newsReadSetting">
有&nbsp;<span class="c_red"><%= unviewed_message(@user) %></span>&nbsp;条未读
<% unless unviewed_message(@user) == 0 %>
<% unless (unviewed_message(@user) == 0 || User.current != @user) %>
<a href="javascript:void(0);" class="ml15"><%= link_to "全部设为已读", user_message_path(User.current, :viewed => 'all') %></a>
<% end %>
</div>