23 lines
1.4 KiB
Plaintext
23 lines
1.4 KiB
Plaintext
<% ma.nil? ? local_assigns[:ma] : ma %>
|
|
<% if ma.class == BlogMessage %>
|
|
<% if ma.blog_message_type == "BlogComment" %>
|
|
<ul class="homepageNewsList fl">
|
|
<div class="longMessageWidth">
|
|
<li class="homepageNewsPortrait fl">
|
|
<%= link_to image_tag(url_to_avatar(User.find(ma.user_operator_id)), :width => "30", :height => "30"), user_path(ma.user_operator_id), :target => '_blank' %>
|
|
</li>
|
|
<li class="homepageNewsPubType fl">
|
|
<%= link_to User.find(ma.user_operator_id).show_name, user_path(ma.user_operator_id), :class => "newsBlue homepageNewsPublisher", :target => '_blank' %>
|
|
<span class="homepageNewsType fl">回复了博客:</span>
|
|
</li>
|
|
<li class="messageInformationContents">
|
|
<% user_id = User.find(BlogComment.find(ma.blog_message_id).blog.author_id) %>
|
|
<% blog_id = BlogComment.find(ma.blog_message_id).root_id %>
|
|
<%= link_to message_content(ma.content), user_blog_blog_comment_path(:user_id => user_id, :blog_id => ma.blog_id, :id => blog_id),
|
|
:class => "#{ma.viewed == false ? "newsBlack" : "newsGrey"}", :target => '_blank' %>
|
|
</li>
|
|
</div>
|
|
<li class="homepageNewsTime fr"><%= time_tag(ma.created_at).html_safe %> </li>
|
|
</ul>
|
|
<% end %>
|
|
<% end %> |