首页如图消息通知中用户姓名显示丢失

This commit is contained in:
daiao 2017-01-13 15:14:35 +08:00
parent 0cde026d5f
commit 20cbc0763c
1 changed files with 2 additions and 2 deletions

View File

@ -782,7 +782,7 @@
<span class="homepageNewsType fl">您增加了新的班级成员:</span>
</li>
<li class="messageInformationContents">
<%= link_to User.find(ma.course_message_id).login+"("+(User.find(ma.course_message_id).realname ? User.find(ma.course_message_id).realname : User.find(ma.course_message_id).login) +")",
<%= link_to User.find(ma.course_message_id).login + "(" + (User.find(ma.course_message_id).show_name) +")",
{:controller => 'courses', :action => 'settings', :id => ma.course_id, :tab => 'member'},
:class => "#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}",
:target => '_blank' %>