Redmine 4.1.1
This commit is contained in:
parent
33e7b881a5
commit
3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions
|
@ -1,7 +1,7 @@
|
|||
# encoding: utf-8
|
||||
#
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Redmine - project management software
|
||||
# Copyright (C) 2006-2017 Jean-Philippe Lang
|
||||
# Copyright (C) 2006-2019 Jean-Philippe Lang
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
|
@ -22,17 +22,19 @@ module EmailAddressesHelper
|
|||
# Returns a link to enable or disable notifications for the address
|
||||
def toggle_email_address_notify_link(address)
|
||||
if address.notify?
|
||||
link_to l(:label_disable_notifications),
|
||||
link_to(
|
||||
l(:label_disable_notifications),
|
||||
user_email_address_path(address.user, address, :notify => '0'),
|
||||
:method => :put, :remote => true,
|
||||
:title => l(:label_disable_notifications),
|
||||
:class => 'icon-only icon-email'
|
||||
:class => 'icon-only icon-email')
|
||||
else
|
||||
link_to l(:label_enable_notifications),
|
||||
link_to(
|
||||
l(:label_enable_notifications),
|
||||
user_email_address_path(address.user, address, :notify => '1'),
|
||||
:method => :put, :remote => true,
|
||||
:title => l(:label_enable_notifications),
|
||||
:class => 'icon-only icon-email-disabled'
|
||||
:class => 'icon-only icon-email-disabled')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue