mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-24 09:21:12 +00:00
cleanup: rubocop: fix Layout/AlignArguments in app/helpers/settings_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18922 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4696722a53
commit
19e2f5243c
@ -113,20 +113,16 @@ module SettingsHelper
|
||||
tag_data = notifiable.parent.present? ?
|
||||
{:parent_notifiable => notifiable.parent} :
|
||||
{:disables => "input[data-parent-notifiable=#{notifiable.name}]"}
|
||||
|
||||
tag = check_box_tag('settings[notified_events][]',
|
||||
notifiable.name,
|
||||
setting_value('notified_events').include?(notifiable.name),
|
||||
:id => nil,
|
||||
:data => tag_data)
|
||||
|
||||
notifiable.name,
|
||||
setting_value('notified_events').include?(notifiable.name),
|
||||
:id => nil,
|
||||
:data => tag_data)
|
||||
text = l_or_humanize(notifiable.name, :prefix => 'label_')
|
||||
|
||||
options = {}
|
||||
if notifiable.parent.present?
|
||||
options[:class] = "parent"
|
||||
end
|
||||
|
||||
content_tag(:label, tag + text, options)
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user