58 lines
4.0 KiB
Plaintext
58 lines
4.0 KiB
Plaintext
<div class="homepageRightBanner">
|
|
<div class="NewsBannerName">系统消息</div>
|
|
<ul class="resourcesSelect">
|
|
<li class="resourcesSelected"><a href="javascript:void(0);" class="resourcesIcon"></a>
|
|
<ul class="newsType">
|
|
<li><%= link_to "全部",user_message_path(User.current), :class => "resourcesGrey" %></li>
|
|
<li><%= link_to "未读消息", user_message_path(User.current, :type => 'unviewed'), :class => "resourcesGrey" %></li>
|
|
<li><%= link_to "用户申请", user_message_path(User.current, :type => 'apply'), :class => "resourcesGrey" %></li>
|
|
<%# 课程相关消息 %>
|
|
<li><%= link_to "作业消息", user_message_path(User.current, :type => 'homework'), :class => "resourcesGrey" %></li>
|
|
<li><%= link_to "课程讨论",user_message_path(User.current, :type => 'course_message'), :class => "resourcesGrey" %></li>
|
|
<li><%= link_to "课程通知",user_message_path(User.current, :type => 'course_news'), :class => "resourcesGrey" %></li>
|
|
<!--<li><%#= link_to "通知回复", user_message_path(User.current, :type => 'course_news_reply'), :class => "resourcesGrey" %></li>-->
|
|
<!--<li><%#= link_to "课程问卷", user_message_path(User.current, :type => 'poll'), :class => "resourcesGrey" %></a></li>-->
|
|
<!--<li><%#= link_to "作品评阅", user_message_path(User.current, :type => 'works_reviewers'), :class => "resourcesGrey" %></li>-->
|
|
<!--<li><%#= link_to "作品讨论", user_message_path(User.current, :type => 'works_reply'), :class => "resourcesGrey" %></li>-->
|
|
<%# 项目相关消息 %>
|
|
<li><%= link_to "项目任务", user_message_path(User.current, :type => 'issue'), :class => "resourcesGrey" %></li>
|
|
<!--<li><%#= link_to "问题更新", user_message_path(User.current, :type => 'issue_update'), :class => "resourcesGrey" %></li>-->
|
|
<!--<li><%#= link_to "项目讨论区", user_message_path(User.current, :type => 'forge_message'), :class => "resourcesGrey" %></li>-->
|
|
<!--<li><%#= link_to "项目新闻", user_message_path(User.current, :type => 'forge_news'), :class => "resourcesGrey" %></li>-->
|
|
<!--<li><%#= link_to "新闻回复", user_message_path(User.current, :type => 'forge_news_reply'), :class => "resourcesGrey" %></li>-->
|
|
<%# 项目相关消息 %>
|
|
<li><%= link_to "贴吧帖子", user_message_path(User.current, :type => 'forum'), :class => "resourcesGrey" %></li>
|
|
<%# 系统贴吧 %>
|
|
<li><%= link_to "用户留言",user_message_path(User.current, :type => 'user_feedback'), :class => "resourcesGrey" %></li>
|
|
<%# 系统消息 %>
|
|
<li><%= link_to "系统消息", user_system_messages_path(User.current), :class => "resourcesGrey" %></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<% @sytem_messages.each do |system_message| %>
|
|
<div class="resources mt10">
|
|
<div class="homepagePostBrief break_word">
|
|
<div class="homepagePostPortrait">
|
|
<%= image_tag("/images/logo.png", :width => "42", :height => "42",class: "mt3") %>
|
|
</div>
|
|
<div class="homepagePostDes">
|
|
<div class="homepagePostTo break_word">
|
|
<span class="fl"> Trustie平台 发布了系统消息:</span>
|
|
<span style="color:#0781b4; max-width:470px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;vertical-align: top;"><%= system_message.subject %></span>
|
|
</div>
|
|
<div class="cl"></div>
|
|
<p class="homepagePostIntro break_word upload_img">
|
|
<%= system_message.content.nil? ? system_message.description.html_safe : system_message.content.html_safe %>
|
|
</p>
|
|
<div class="cl"></div>
|
|
<p class="homepagePostDeadline">截止时间:<%= format_time(system_message.created_at) %></p>
|
|
</div>
|
|
<div class="cl"></div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<ul class="wlist" style=" border:none; padding-top: 15px;">
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
|
|
</ul> |