diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2015-10-12 17:03:12 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2015-10-15 12:05:01 +0200 |
commit | 949635636728fa388d983b180b7ab4e55aa8caa9 (patch) | |
tree | 4186d3d9e3c8fdcb4f44a5d6ca2fec685e2f5adf /app/views/users/show.html.haml | |
parent | 693e63f5234032aa1abbc226c0d6337d6ea810ed (diff) | |
download | gitlab-ce-949635636728fa388d983b180b7ab4e55aa8caa9.tar.gz |
Re-use User objects for avatar_icon where possible
This removes the need for running an extra SQL query in these cases.
Diffstat (limited to 'app/views/users/show.html.haml')
-rw-r--r-- | app/views/users/show.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 11beb3e3239..2a64708d07c 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -9,8 +9,8 @@ .row %section.col-md-7 .header-with-avatar - = link_to avatar_icon(@user.email, 400), target: '_blank' do - = image_tag avatar_icon(@user.email, 90), class: "avatar avatar-tile s90", alt: '' + = link_to avatar_icon(@user, 400), target: '_blank' do + = image_tag avatar_icon(@user, 90), class: "avatar avatar-tile s90", alt: '' %h3 = @user.name - if @user == current_user |