<% if @message_alls.count >0 || @user_system_messages.count >0 %>
<% if params[:type].nil? || params[:type] == "unviewed" %>
<% end %>
<%# 系统消息 %>
<% if params[:type] != 'system_messages' %>
<% @user_system_messages.each do |usm| %>
-
<%= image_tag("/images/logo.png", width: "30px", height: "30px", class: "mt3") %>
-
Trustie平台发布新消息:
【系统消息】
-
<%= link_to usm.subject.blank? ? (usm.content.nil? ? usm.description.html_safe : usm.content.html_safe) : usm.subject, user_system_messages_path(User.current),
:id => "content_link_#{usm.id}",
:onmouseover =>"message_titile_show($(this),event);",
:onmouseout => "message_titile_hide($(this));"
%>
<% unless usm.subject.blank? %>
标题:<%= usm.subject %>
<% end %>
<% if (!usm.description.blank?) || (!usm.content.blank?) %>
内容:
<%= usm.description.nil? ? usm.content.html_safe : usm.description.html_safe %>
<% end %>
- <%= time_tag(usm.created_at).html_safe %>
<% end %>
<% end %>
<% unless @message_alls.nil? %>
<% @message_alls.each do |ma| %>
<%# 课程消息 %>
<%= render :partial => 'users/user_message_course', :locals => {:ma => ma} %>
<%= render :partial => 'users/user_message_forge', :locals => {:ma => ma} %>
<%= render :partial => 'users/user_message_forum', :locals => {:ma => ma} %>
<%= render :partial => 'users/user_message_userfeedaback', :locals => {:ma => ma} %>
<% end %>