博客未读消息,样式加粗,已读取消加粗

This commit is contained in:
daiao 2017-01-18 16:43:37 +08:00
parent e7e5f5d586
commit 36c099c305
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
<% user_id = User.find(BlogComment.find(ma.blog_commont_id).blog.author_id) %> <% user_id = User.find(BlogComment.find(ma.blog_commont_id).blog.author_id) %>
<% blog_id = BlogComment.find(ma.blog_commont_id).root_id %> <% blog_id = BlogComment.find(ma.blog_commont_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), <%= 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 == 0 ? "newsBlack" : "newsGrey"}", :target => '_blank' %> :class => "#{ma.viewed == false ? "newsBlack" : "newsGrey"}", :target => '_blank' %>
</li> </li>
</div> </div>
<li class="homepageNewsTime fr"><%= time_tag(ma.created_at).html_safe %> </li> <li class="homepageNewsTime fr"><%= time_tag(ma.created_at).html_safe %> </li>