Skip to content

Commit

Permalink
Merge pull request #5861 from krauselukas/no_icon
Browse files Browse the repository at this point in the history
Do not return image tag if no_icon var is set
  • Loading branch information
Ana06 committed Sep 18, 2018
2 parents b4d2a7a + 71a2a43 commit f1014e4
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 f1014e4

Please sign in to comment.