2015-08-14 15:48:23 +08:00
|
|
|
<div id="RSide" class="fl">
|
2015-08-20 16:27:49 +08:00
|
|
|
<div class="homepageRight">
|
|
|
|
<div class="resources">
|
|
|
|
<div class="resourcesBanner">
|
|
|
|
<div class="bannerName">消息</div>
|
|
|
|
<ul class="resourcesSelect">
|
|
|
|
<li class="resourcesSelected"><a href="javascript:void(0);" class="resourcesIcon"></a>
|
|
|
|
<ul class="newsType">
|
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "全部",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user} %></a></li>
|
|
|
|
<%# 课程相关消息 %>
|
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "作业消息",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'homework'} %></a></li>
|
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "课程讨论区",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'course_message'} %></a></li>
|
2015-08-20 17:20:38 +08:00
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "课程通知",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'course_news'} %></a></li>
|
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "通知回复",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'course_news_reply'} %></a></li>
|
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "课程问卷",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'poll'} %></a></li>
|
2015-08-20 16:27:49 +08:00
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "作品评阅",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'works_reviewers'} %></a></li>
|
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "作品讨论",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'works_reply'} %></a></li>
|
|
|
|
<%# 项目相关消息 %>
|
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "指派给我",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'issue'} %></a></li>
|
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "更新了问题",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'issue_update'} %></a></li>
|
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "项目讨论区",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'forge_message'} %></a></li>
|
2015-08-20 17:20:38 +08:00
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "项目新闻",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'forge_news'} %></a></li>
|
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "新闻回复",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'forge_news_reply'} %></a></li>
|
|
|
|
<%# 项目相关消息 %>
|
2015-08-20 16:27:49 +08:00
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "贴吧帖子",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'forum'} %></a></li>
|
2015-08-20 17:20:38 +08:00
|
|
|
<%# 系统贴吧 %>
|
2015-08-20 16:27:49 +08:00
|
|
|
<li><a href="javascript:void(0);" class="resourcesGrey"><%= link_to "用户留言",{:controller=> 'users', :action => 'user_messages', id: User.current.id, host: Setting.host_user, :type => 'user_feedback'} %></a></li>
|
2015-08-20 12:44:32 +08:00
|
|
|
|
2015-08-20 16:27:49 +08:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2015-08-21 09:41:59 +08:00
|
|
|
<% if @new_message_count >0 %>
|
|
|
|
<%# 课程消息 %>
|
|
|
|
<% unless @user_course_messages.nil? %>
|
|
|
|
<% @user_course_messages.each do |ucm| %>
|
|
|
|
<% if ucm.course_message_type == "News" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><%= image_tag(url_to_avatar(ucm.course_message.author), :width => "30", :height => "30") %></a></li>
|
|
|
|
<li class="homepageNewsPublisher fl"><a href="javascript:void(0);" class="<%=ucm.viewed == 0?"newsBlack":"newsBlue"%>"><%= ucm.course_message.author %></a></li>
|
|
|
|
<li class="<%= ucm.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>">发布通知</li>
|
|
|
|
<li class="homepageNewsContent fl">
|
2015-08-21 10:02:58 +08:00
|
|
|
<%= link_to "#{ucm.course_message.title.html_safe}", {:controller => 'news', :action => 'show', :id => ucm.course_message.id },
|
|
|
|
:class =>"#{ucm.viewed == 0 ? "newsBlack" : "newsGrey"}",
|
|
|
|
:title => "#{ucm.course_message.title.html_safe}" %></li>
|
2015-08-21 09:41:59 +08:00
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ucm.course_message.created_on).html_safe %> </li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% if ucm.course_message_type == "Comment" %>
|
2015-08-20 17:20:38 +08:00
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><%= image_tag(url_to_avatar(ucm.course_message.author), :width => "30", :height => "30") %></a></li>
|
|
|
|
<li class="homepageNewsPublisher fl"><a href="javascript:void(0);" class="newsBlue"><%= ucm.course_message.author %></a></li>
|
|
|
|
<li class="<%= ucm.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>">回复了通知</li>
|
|
|
|
<li class="homepageNewsContent fl">
|
2015-08-21 10:02:58 +08:00
|
|
|
<%= link_to "#{ucm.course_message.comments.html_safe}", {:controller => 'news', :action => 'show', :id => ucm.course_message.commented.id },
|
|
|
|
:class =>"#{ucm.viewed == 0 ? "newsBlack" : "newsGrey"}",
|
|
|
|
:title => "#{ucm.course_message.comments.html_safe}" %></li>
|
2015-08-20 17:20:38 +08:00
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ucm.course_message.created_on).html_safe %> </li>
|
|
|
|
</ul>
|
2015-08-21 09:41:59 +08:00
|
|
|
<% end %>
|
|
|
|
<% if ucm.course_message_type == "HomeworkCommon" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><%= image_tag(url_to_avatar(ucm.course_message.user), :width => "30", :height => "30") %></a></li>
|
|
|
|
<li class="homepageNewsPublisher fl"><a href="javascript:void(0);" class="newsBlue"><%= ucm.course_message.user %></a></li>
|
|
|
|
<li class="homepageNewsType fl">发布作业</li>
|
|
|
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
2015-08-21 10:02:58 +08:00
|
|
|
<%= link_to ("#{ucm.course_message.name}"), student_work_index_path(:homework => ucm.course_message.id),:class => "newsGrey", :title => "#{ucm.course_message.name}" %></a></li>
|
2015-08-21 09:41:59 +08:00
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ucm.course_message.created_at).html_safe %> </li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% if ucm.course_message_type == "Poll" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><%= image_tag(url_to_avatar(ucm.course_message.user), :width => "30", :height => "30") %></a></li>
|
|
|
|
<li class="homepageNewsPublisher fl"><a href="javascript:void(0);" class="<%=ucm.viewed == 0?"newsBlack":"newsBlue"%>"><%= ucm.course_message.user %></a></li>
|
|
|
|
<li class="<%= ucm.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>">发布问卷</li>
|
|
|
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
2015-08-21 13:08:05 +08:00
|
|
|
<%= link_to format_activity_title(" #{ucm.course_message.polls_name.nil? ? "未命名问卷" : ucm.course_message.polls_name}"), poll_index_path(:polls_type => "Course", :polls_group_id => ucm.course_id),
|
2015-08-21 10:02:58 +08:00
|
|
|
:class=>"#{ucm.viewed==0?"newsBlack":"newsGrey"}",
|
|
|
|
:title => "#{ucm.course_message.polls_name}" %></a></li>
|
2015-08-21 09:41:59 +08:00
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ucm.course_message.created_at).html_safe %> </li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% if ucm.course_message_type == "Message" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><%= image_tag(url_to_avatar(ucm.course_message.author), :width => "30", :height => "30") %></a></li>
|
|
|
|
<li class="homepageNewsPublisher fl"><a href="javascript:void(0);" class="<%=ucm.viewed == 0?"newsBlack":"newsBlue"%>"><%= ucm.course_message.author %></a></li>
|
|
|
|
<% if ucm.course_message.parent_id.nil? %>
|
|
|
|
<li class="<%= ucm.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>">发布帖子</li>
|
|
|
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
2015-08-21 10:02:58 +08:00
|
|
|
<%=link_to ucm.course_message.subject.html_safe, course_boards_path(ucm.course_message.course,:parent_id => ucm.course_message.parent_id ? ucm.course_message.parent_id : ucm.course_message.id,
|
|
|
|
:topic_id => ucm.course_message.id),:class=>"#{ucm.viewed==0?"newsBlack":"newsGrey"}",
|
|
|
|
:title => "#{ucm.course_message.subject.html_safe}" %></a></li>
|
2015-08-21 09:41:59 +08:00
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ucm.course_message.created_on).html_safe %> </li>
|
|
|
|
<% else %>
|
|
|
|
<li class="<%= ucm.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>">回复帖子</li>
|
|
|
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
2015-08-21 10:02:58 +08:00
|
|
|
<%=link_to ucm.course_message.subject.html_safe, course_boards_path(ucm.course_message.course,:parent_id => ucm.course_message.parent_id ? ucm.course_message.parent_id : ucm.course_message.id,
|
|
|
|
:topic_id => ucm.course_message.id),:class=>"#{ucm.viewed==0?"newsBlack":"newsGrey"}",
|
|
|
|
:title => "#{ucm.course_message.subject.html_safe}" %> </a></li>
|
2015-08-21 09:41:59 +08:00
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ucm.course_message.created_on).html_safe %> </li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% if ucm.course_message_type == "StudentWorksScore" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><%= image_tag(url_to_avatar(ucm.course_message.user), :width => "30", :height => "30") %></a></li>
|
|
|
|
<li class="homepageNewsPublisher fl"><a href="javascript:void(0);" class="newsBlue"><%= ucm.course_message.user %></a></li>
|
|
|
|
<li class="homepageNewsType fl">评阅了作品</li>
|
|
|
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
2015-08-21 14:04:10 +08:00
|
|
|
<%= link_to "#{ucm.course_message.comment.nil? ? "分数:"+ucm.course_message.score.to_s : "分数:"+ucm.course_message.score.to_s + "----" + "评语:" + ucm.course_message.comment}", student_work_index_path(:homework => ucm.course_message.student_work.homework_common_id),:class=>"newsGrey",:title => "#{ucm.course_message.comment}" %></a></li>
|
2015-08-21 09:41:59 +08:00
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ucm.course_message.created_at).html_safe %> </li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% if ucm.course_message_type == "JournalsForMessage" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><%= image_tag(url_to_avatar(ucm.course_message.user), :width => "30", :height => "30") %></a></li>
|
|
|
|
<li class="homepageNewsPublisher fl"><a href="javascript:void(0);" class="newsBlue"><%= ucm.course_message.user %></a></li>
|
|
|
|
<li class="homepageNewsType fl">回复了作品</li>
|
|
|
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
2015-08-21 12:59:50 +08:00
|
|
|
<%= link_to ucm.course_message.notes, student_work_index_path(:homework => ucm.course_message.jour.student_work.homework_common_id),:class=>"newsGrey",:title => "#{ucm.course_message.notes}" %></a></li>
|
2015-08-21 09:41:59 +08:00
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ucm.course_message.created_on).html_safe %> </li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<!--项目消息-->
|
|
|
|
<% unless @user_forge_messages.nil? %>
|
|
|
|
<% @user_forge_messages.each do |ufm| %>
|
|
|
|
<% if ufm.forge_message_type == "Issue" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl">
|
|
|
|
<a href="javascript:void(0);"><%= image_tag(url_to_avatar(ufm.forge_message.author), :width => "30", :height => "30") %></a>
|
|
|
|
</li>
|
|
|
|
<li class="homepageNewsPublisher fl">
|
|
|
|
<a href="javascript:void(0);" class="<%= ufm.viewed == 0 ? "newsBlack" : "newsBlue" %>"><%= ufm.forge_message.author %></a>
|
|
|
|
</li>
|
|
|
|
<li class="<%= ufm.viewed == 0 ? "homepageNewsTypeNotRead fl" : "homepageNewsType fl" %>">指派问题给我</li>
|
|
|
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
2015-08-21 10:02:58 +08:00
|
|
|
<%= link_to ("#{ufm.forge_message.subject.html_safe}"), issue_path(:id => ufm.forge_message.id), :class => "#{ufm.viewed == 0 ? "newsBlack" : "newsGrey"}",:title => "#{ufm.forge_message.subject.html_safe}" %></a>
|
2015-08-21 09:41:59 +08:00
|
|
|
</li>
|
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ufm.forge_message.created_on).html_safe %> </li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% if ufm.forge_message_type == "Journal" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl">
|
|
|
|
<a href="javascript:void(0);"><%= image_tag(url_to_avatar(ufm.forge_message.user), :width => "30", :height => "30") %></a>
|
|
|
|
</li>
|
|
|
|
<li class="homepageNewsPublisher fl">
|
|
|
|
<a href="javascript:void(0);" class="<%= ufm.viewed == 0 ? "newsBlack" : "newsBlue" %>"><%= ufm.forge_message.user %></a>
|
|
|
|
</li>
|
|
|
|
<li class="<%= ufm.viewed == 0 ? "homepageNewsTypeNotRead fl" : "homepageNewsType fl" %>">
|
2015-08-21 15:27:01 +08:00
|
|
|
更新了问题
|
2015-08-21 09:41:59 +08:00
|
|
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
2015-08-21 15:27:01 +08:00
|
|
|
<%= link_to get_issue_des_update(ufm.forge_message),
|
2015-08-21 10:02:58 +08:00
|
|
|
issue_path(:id => ufm.forge_message.journalized_id), :class => "#{ufm.viewed == 0 ? "newsBlack" : "newsGrey"}",
|
2015-08-21 15:27:01 +08:00
|
|
|
:title => "#{get_issue_des_update(ufm.forge_message)}" %></a>
|
2015-08-21 09:41:59 +08:00
|
|
|
</li>
|
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ufm.forge_message.created_on).html_safe %> </li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% if ufm.forge_message_type == "Message" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><%= image_tag(url_to_avatar(ufm.forge_message.author), :width => "30", :height => "30") %></a></li>
|
|
|
|
<li class="homepageNewsPublisher fl"><a href="javascript:void(0);" class="<%=ufm.viewed == 0?"newsBlack":"newsBlue"%>"><%= ufm.forge_message.author %></a></li>
|
|
|
|
|
|
|
|
<li class="<%= ufm.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>"><%= ufm.forge_message.parent_id.nil? ? "发布帖子" : "回复帖子" %></li>
|
|
|
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
2015-08-21 10:02:58 +08:00
|
|
|
<%=link_to ufm.forge_message.subject.html_safe, project_boards_path(ufm.forge_message.project,
|
|
|
|
:parent_id => ufm.forge_message.parent_id ? ufm.forge_message.parent_id : ufm.forge_message.id,
|
|
|
|
:topic_id => ufm.forge_message.id),:class=>"#{ufm.viewed==0?"newsBlack":"newsGrey"}",
|
|
|
|
:title => "#{ufm.forge_message.subject.html_safe}" %></a></li>
|
2015-08-21 09:41:59 +08:00
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ufm.forge_message.created_on).html_safe %> </li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% if ufm.forge_message_type == "News" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl">
|
|
|
|
<a href="javascript:void(0);"><%= image_tag(url_to_avatar(ufm.forge_message.author), :width => "30", :height => "30") %></a>
|
|
|
|
</li>
|
|
|
|
<li class="homepageNewsPublisher fl">
|
|
|
|
<a href="javascript:void(0);" class="newsBlue"><%= ufm.forge_message.author %></a>
|
|
|
|
</li>
|
|
|
|
<li class="homepageNewsType fl">发布新闻</li>
|
|
|
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
2015-08-21 10:02:58 +08:00
|
|
|
<%= link_to ("#{ufm.forge_message.title.html_safe}"), {:controller => 'news', :action => 'show', :id => ufm.forge_message.id}, :class => "newsGrey", :title => "#{ufm.forge_message.title.html_safe}" %></a>
|
2015-08-21 09:41:59 +08:00
|
|
|
</li>
|
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ufm.forge_message.created_on).html_safe %> </li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
2015-08-20 17:20:38 +08:00
|
|
|
<% if ufm.forge_message_type == "Comment" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><%= image_tag(url_to_avatar(ufm.forge_message.author), :width => "30", :height => "30") %></a></li>
|
|
|
|
<li class="homepageNewsPublisher fl"><a href="javascript:void(0);" class="newsBlue"><%= ufm.forge_message.author %></a></li>
|
|
|
|
<li class="homepageNewsType fl">回复了新闻</li>
|
|
|
|
<li class="homepageNewsContent fl">
|
2015-08-21 10:02:58 +08:00
|
|
|
<%= link_to "#{ufm.forge_message.comments.html_safe}",
|
|
|
|
{:controller => 'news', :action => 'show', :id => ufm.forge_message.commented.id },:class =>"#{ufm.viewed == 0 ? "newsBlack" : "newsGrey"}", :title => "#{ufm.forge_message.comments.html_safe}"%></li>
|
2015-08-20 17:20:38 +08:00
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ufm.forge_message.created_on).html_safe %> </li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
2015-08-21 09:41:59 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<%# 公共贴吧 %>
|
|
|
|
<% unless @user_memo_messages.nil? %>
|
|
|
|
<% @user_memo_messages.each do |urm| %>
|
|
|
|
<% if urm.memo_type == "Memo" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl">
|
|
|
|
<a href="javascript:void(0);"><%= image_tag(url_to_avatar(urm.memo.author), :width => "30", :height => "30") %></a>
|
|
|
|
</li>
|
|
|
|
<li class="homepageNewsPublisher fl">
|
|
|
|
<a href="javascript:void(0);" class="newsBlue"><%= urm.memo.author %></a>
|
|
|
|
</li>
|
2015-08-21 15:27:01 +08:00
|
|
|
<li class="homepageNewsType fl" >新建贴吧帖子</li>
|
2015-08-21 09:41:59 +08:00
|
|
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
2015-08-21 10:02:58 +08:00
|
|
|
<%= link_to urm.memo.content.html_safe, forum_memo_path(urm.memo.forum_id, urm.memo.parent_id ? urm.memo.parent_id: urm.memo.id),:class => "newsGrey" , :title => "#{urm.memo.content.html_safe}" %></a>
|
2015-08-21 09:41:59 +08:00
|
|
|
</li>
|
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(urm.memo.created_at).html_safe %> </li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<%# 用户留言消息 %>
|
|
|
|
<% unless @user_feedback_messages.nil? %>
|
|
|
|
<% @user_feedback_messages.each do |ufm| %>
|
|
|
|
<% if ufm.journals_for_message_type == "Principal" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl">
|
|
|
|
<a href="javascript:void(0);"><%= image_tag(url_to_avatar(ufm.journals_for_message.user), :width => "30", :height => "30") %></a>
|
|
|
|
</li>
|
|
|
|
<li class="homepageNewsPublisher fl">
|
|
|
|
<a href="javascript:void(0);" class="newsBlue"><%= ufm.journals_for_message.user %></a>
|
|
|
|
</li>
|
|
|
|
<li class="homepageNewsType fl"><%= ufm.journals_for_message.reply_id == 0 ? "给你留言了" : "回复了你的留言" %></li>
|
|
|
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
2015-08-21 10:02:58 +08:00
|
|
|
<%= link_to ufm.journals_for_message.notes.html_safe, feedback_path(ufm.journals_for_message.jour_id), :class => "newsGrey", :title => "#{ufm.journals_for_message.notes.html_safe}" %></a>
|
2015-08-21 09:41:59 +08:00
|
|
|
</li>
|
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ufm.journals_for_message.created_on).html_safe %> </li>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<div class="flash notice">暂无消息!</div>
|
|
|
|
<% end %>
|
2015-08-20 16:27:49 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-13 22:33:08 +08:00
|
|
|
</div>
|