未登录用户访问个人主页时的头像显示

This commit is contained in:
cxt 2016-08-29 14:41:01 +08:00
parent 0b0a23f270
commit 547fb8a1a5
1 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,9 @@
</div>
</div>
<% else %>
<img src="images/user/male.jpg" width="74" height="74" />
<a href="javascript:void(0)" class="user_leftinfo_img" style="cursor: default">
<%=image_tag(url_to_avatar(@user),width:"74", height: "74", :id=>'nh_source_tx') %>
</a>
<% end %>
<% if (@user.user_extensions && (@user.user_extensions.identity != 2) ) %>
<span class="<%= @user.user_extensions.gender == 1 ? 'user_leftinfo_female' : 'user_leftinfo_male' %> "></span>