<% message_alls.each do |ma| %> <%# 系统消息 %> <%= render :partial => 'users/user_message_system', :locals => {:ma => ma} %> <%= render :partial => 'users/user_at_message', :locals => {:ma => ma} %> <%# 课程消息 %> <%= render :partial => 'users/user_message_course', :locals => {:ma => ma} %> <%= render :partial => 'users/user_message_forge', :locals => {:ma => ma} %> <%# 竞赛消息 %> <%= render :partial => 'users/user_message_contest', :locals => {:ma => ma} %> <%= render :partial => 'users/user_message_forum', :locals => {:ma => ma} %> <%= render :partial => 'users/user_message_userfeedaback', :locals => {:ma => ma} %> <%= render :partial => 'users/user_message_org', :locals => {:ma => ma} %> <%# 申请类消息 %> <%= render :partial => 'users/user_message_applied', :locals => {:ma => ma} %> <% end %>