Commit 14f31eb9 authored by Luke Bennett's avatar Luke Bennett

Add has_tooltip bool handling for commit_person_link

parent 58803cd8
......@@ -145,15 +145,18 @@ module CommitsHelper
person_name
end
options = {
class: "commit-#{options[:source]}-link has-tooltip",
title: source_email
link_options = {
class: "commit-#{options[:source]}-link",
}
unless options[:has_tooltip] == false
link_options[:class] << ' has-tooltip'
link_options[:title] = source_email
end
if user.nil?
mail_to(source_email, text, options)
mail_to(source_email, text, link_options)
else
link_to(text, user_path(user), options)
link_to(text, user_path(user), link_options)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment