parent
402c0b5173
commit
0a45e08488
|
@ -29,12 +29,15 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="resources mt10" id="users_setting">
|
<div class="resources mt10" id="users_setting">
|
||||||
<div>
|
<div>
|
||||||
|
<% if @message_alls.count >0 %>
|
||||||
<% 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> 条未读<a href="javascript:void(0);" class="ml15"><%= link_to "全部设为已读", user_message_path(User.current, :viewed => 'all') %></a>
|
有 <span class="c_red"><%= unviewed_message(@user) %></span> 条未读
|
||||||
|
<% unless unviewed_message(@user) == 0 %>
|
||||||
|
<a href="javascript:void(0);" class="ml15"><%= link_to "全部设为已读", user_message_path(User.current, :viewed => 'all') %></a>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @message_alls.count >0 %>
|
|
||||||
<%# 课程消息 %>
|
<%# 课程消息 %>
|
||||||
<% unless @message_alls.nil? %>
|
<% unless @message_alls.nil? %>
|
||||||
<% @message_alls.each do |ma| %>
|
<% @message_alls.each do |ma| %>
|
||||||
|
|
Loading…
Reference in New Issue