0条消息则不显示“全部设为已读”
This commit is contained in:
parent
a47c9176b7
commit
a78b28f1b7
|
@ -31,7 +31,10 @@
|
|||
<div>
|
||||
<% if params[:type].nil? %>
|
||||
<div class="newsReadSetting">
|
||||
有 <span class="c_red"><%= User.current.count_new_message %></span> 条未读<a href="javascript:void(0);" class="ml15"><%= link_to "全部设为已读", user_message_path(User.current, :viewed => 'all') %></a>
|
||||
有 <span class="c_red"><%= User.current.count_new_message %></span> 条未读
|
||||
<% unless User.current.count_new_message == 0 %>
|
||||
<a href="javascript:void(0);" class="ml15"><%= link_to "全部设为已读", user_message_path(User.current, :viewed => 'all') %></a>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% if @message_alls.count >0 %>
|
||||
|
|
Loading…
Reference in New Issue