如果没有填写真实名字的话,那么就要用用户名了。

This commit is contained in:
lizanle 2015-11-02 10:10:32 +08:00
parent 46680a7cfe
commit 6fffcec250
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@
</div>
<div class="fl ml10">
<p class="homepageImageName hidden db mb5">
<%= @user.realname %>
<%= @user.realname.blank? ? @user.login : @user.realname %>
</p>
<% if (@user.user_extensions && (@user.user_extensions.identity != 2) ) %>
<span class="<%= @user.user_extensions.gender == 1 ? 'homepageImageSexWomen' : 'homepageImageSexMan' %> "></span>