mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31:12 +00:00
cleanup: rubocop: fix Layout/AlignArguments in app/helpers/workflows_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18923 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
19e2f5243c
commit
d38d920709
@ -76,7 +76,6 @@ module WorkflowsHelper
|
|||||||
|
|
||||||
def transition_tag(transition_count, old_status, new_status, name)
|
def transition_tag(transition_count, old_status, new_status, name)
|
||||||
w = transition_count
|
w = transition_count
|
||||||
|
|
||||||
tag_name = "transitions[#{ old_status.try(:id) || 0 }][#{new_status.id}][#{name}]"
|
tag_name = "transitions[#{ old_status.try(:id) || 0 }][#{new_status.id}][#{name}]"
|
||||||
if old_status == new_status
|
if old_status == new_status
|
||||||
check_box_tag(tag_name, "1", true,
|
check_box_tag(tag_name, "1", true,
|
||||||
@ -86,12 +85,14 @@ module WorkflowsHelper
|
|||||||
check_box_tag(tag_name, "1", w != 0,
|
check_box_tag(tag_name, "1", w != 0,
|
||||||
:class => "old-status-#{old_status.try(:id) || 0} new-status-#{new_status.id}")
|
:class => "old-status-#{old_status.try(:id) || 0} new-status-#{new_status.id}")
|
||||||
else
|
else
|
||||||
select_tag tag_name,
|
select_tag(
|
||||||
|
tag_name,
|
||||||
options_for_select([
|
options_for_select([
|
||||||
[l(:general_text_Yes), "1"],
|
[l(:general_text_Yes), "1"],
|
||||||
[l(:general_text_No), "0"],
|
[l(:general_text_No), "0"],
|
||||||
[l(:label_no_change_option), "no_change"]
|
[l(:label_no_change_option), "no_change"]
|
||||||
], "no_change")
|
], "no_change")
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user