mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-09 09:01:31 +00:00
cleanup: rubocop: fix Layout/AlignArguments in app/helpers/email_addresses_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19034 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9d210a3b94
commit
4c8b2ea40b
@ -22,17 +22,19 @@ module EmailAddressesHelper
|
|||||||
# Returns a link to enable or disable notifications for the address
|
# Returns a link to enable or disable notifications for the address
|
||||||
def toggle_email_address_notify_link(address)
|
def toggle_email_address_notify_link(address)
|
||||||
if address.notify?
|
if address.notify?
|
||||||
link_to l(:label_disable_notifications),
|
link_to(
|
||||||
|
l(:label_disable_notifications),
|
||||||
user_email_address_path(address.user, address, :notify => '0'),
|
user_email_address_path(address.user, address, :notify => '0'),
|
||||||
:method => :put, :remote => true,
|
:method => :put, :remote => true,
|
||||||
:title => l(:label_disable_notifications),
|
:title => l(:label_disable_notifications),
|
||||||
:class => 'icon-only icon-email'
|
:class => 'icon-only icon-email')
|
||||||
else
|
else
|
||||||
link_to l(:label_enable_notifications),
|
link_to(
|
||||||
|
l(:label_enable_notifications),
|
||||||
user_email_address_path(address.user, address, :notify => '1'),
|
user_email_address_path(address.user, address, :notify => '1'),
|
||||||
:method => :put, :remote => true,
|
:method => :put, :remote => true,
|
||||||
:title => l(:label_enable_notifications),
|
:title => l(:label_enable_notifications),
|
||||||
:class => 'icon-only icon-email-disabled'
|
:class => 'icon-only icon-email-disabled')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user