查看别人的页面时不显示“全部设为已读”
This commit is contained in:
parent
4d4b48ef99
commit
3da6593720
|
@ -36,7 +36,7 @@
|
||||||
<% if params[:type].nil? || params[:type] == "unviewed" %>
|
<% if params[:type].nil? || params[:type] == "unviewed" %>
|
||||||
<div class="newsReadSetting">
|
<div class="newsReadSetting">
|
||||||
有 <span class="c_red"><%= unviewed_message(@user) %></span> 条未读
|
有 <span class="c_red"><%= unviewed_message(@user) %></span> 条未读
|
||||||
<% 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>
|
<a href="javascript:void(0);" class="ml15"><%= link_to "全部设为已读", user_message_path(User.current, :viewed => 'all') %></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue