Commit efa26c93 authored by Rémy Coutable's avatar Rémy Coutable

Fix Rubocop offenses

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 9bbef09b
...@@ -7,7 +7,7 @@ module AuditEventsHelper ...@@ -7,7 +7,7 @@ module AuditEventsHelper
if key.match(/^(author|target)_.*/) if key.match(/^(author|target)_.*/)
"" ""
else else
"#{key.to_s} <strong>#{value}</strong>" "#{key} <strong>#{value}</strong>"
end end
end end
end end
...@@ -155,7 +155,7 @@ module TreeHelper ...@@ -155,7 +155,7 @@ module TreeHelper
def disabled_lock_link(label, title, html_options) def disabled_lock_link(label, title, html_options)
html_options['data-toggle'] = 'tooltip' html_options['data-toggle'] = 'tooltip'
html_options[:title] = title html_options[:title] = title
html_options[:class] = "#{html_options[:class].to_s} disabled has-tooltip" html_options[:class] = "#{html_options[:class]} disabled has-tooltip"
content_tag :span, label, html_options content_tag :span, label, html_options
end end
...@@ -163,7 +163,7 @@ module TreeHelper ...@@ -163,7 +163,7 @@ module TreeHelper
def enabled_lock_link(label, title, html_options) def enabled_lock_link(label, title, html_options)
html_options['data-toggle'] = 'tooltip' html_options['data-toggle'] = 'tooltip'
html_options[:title] = title html_options[:title] = title
html_options[:class] = "#{html_options[:class].to_s} has-tooltip" html_options[:class] = "#{html_options[:class]} has-tooltip"
link_to label, '#', html_options link_to label, '#', html_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