增加公共贴吧消息
This commit is contained in:
parent
425e0dd89a
commit
d387a529d7
|
@ -180,6 +180,23 @@
|
|||
<% end %>
|
||||
<% end %>
|
||||
<% unless @user_forum_messages.nil? %>
|
||||
<% @user_forum_messages.each do |urm| %>
|
||||
<% if urm.memo_message_type == "Forum" %>
|
||||
<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="<%= urm.viewed == 0 ? "newsBlack" : "newsBlue" %>"><%= urm.memo.author %></a>
|
||||
</li>
|
||||
<li class="<%= urm.viewed == 0 ? "homepageNewsTypeNotRead fl" : "homepageNewsType fl" %>">回复了帖子</li>
|
||||
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
||||
<%= link_to ("#{urm.memo.subject}"), {:controller => 'news', :action => 'show', :id => urm.memo.id}, :class => "#{urm.viewed == 0 ? "newsBlack" : "newsGrey"}" %></a>
|
||||
</li>
|
||||
<li class="homepageNewsTime fl"><%= time_tag(urm.memo.created_at).html_safe %> </li>
|
||||
</ul>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<div class="flash notice">暂无消息!</div>
|
||||
|
|
Loading…
Reference in New Issue