Skip to content

Commit

Permalink
Do not return image tag if no_icon var is set
Browse files Browse the repository at this point in the history
The no_icon variable had no effect

Fixes #4926
  • Loading branch information
krauselukas committed Sep 17, 2018
1 parent b02bc9b commit 71a2a43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api/app/helpers/webui/user_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ def user_with_realname_and_icon(user, opts = {})
printed_name = "#{realname} (#{user.login})"
end

user_image_tag(user) + ' ' + link_to(printed_name, user_show_path(user))
if opts[:no_icon]
link_to(printed_name, user_show_path(user))
else
user_image_tag(user) + ' ' + link_to(printed_name, user_show_path(user))
end
end
end

Expand Down

0 comments on commit 71a2a43

Please sign in to comment.