gitlab-org--gitlab-foss/app/helpers/users_helper.rb
Toon Claes 0759db802f Move user_link to generic UsersHelper
Make the user_link helper more generic to be used for objects other
than pipelines.
2017-03-23 22:21:00 +01:00

7 lines
178 B
Ruby

module UsersHelper
def user_link(user)
link_to(user.name, user_path(user),
title: user.email,
class: 'has-tooltip commit-committer-link')
end
end