##// END OF EJS Templates
Additional option for USER_FORMAT, #{lastname}#{firstname} without any sperator (#3551)....
Additional option for USER_FORMAT, #{lastname}#{firstname} without any sperator (#3551). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@15133 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r14686:7467c145c03c
r14751:7005de51c5b2
Show More
email_addresses_helper.rb
38 lines | 1.4 KiB | text/x-ruby | RubyLexer
/ app / helpers / email_addresses_helper.rb
Jean-Philippe Lang
Add support for multiple email addresses per user (#4244)....
r13504 # encoding: utf-8
#
# Redmine - project management software
# Copyright (C) 2006-2015 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
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
module EmailAddressesHelper
# Returns a link to enable or disable notifications for the address
def toggle_email_address_notify_link(address)
if address.notify?
Jean-Philippe Lang
Replace uses of image_tag() with CSS (#21256)....
r14686 link_to '',
Jean-Philippe Lang
Add support for multiple email addresses per user (#4244)....
r13504 user_email_address_path(address.user, address, :notify => '0'),
Jean-Philippe Lang
Replace uses of image_tag() with CSS (#21256)....
r14686 :method => :put, :remote => true,
Jean-Philippe Lang
Add support for multiple email addresses per user (#4244)....
r13504 :title => l(:label_disable_notifications),
Jean-Philippe Lang
Replace uses of image_tag() with CSS (#21256)....
r14686 :class => 'icon icon-email'
Jean-Philippe Lang
Add support for multiple email addresses per user (#4244)....
r13504 else
Jean-Philippe Lang
Replace uses of image_tag() with CSS (#21256)....
r14686 link_to '',
Jean-Philippe Lang
Add support for multiple email addresses per user (#4244)....
r13504 user_email_address_path(address.user, address, :notify => '1'),
Jean-Philippe Lang
Replace uses of image_tag() with CSS (#21256)....
r14686 :method => :put, :remote => true,
Jean-Philippe Lang
Add support for multiple email addresses per user (#4244)....
r13504 :title => l(:label_enable_notifications),
Jean-Philippe Lang
Replace uses of image_tag() with CSS (#21256)....
r14686 :class => 'icon icon-email-disabled'
Jean-Philippe Lang
Add support for multiple email addresses per user (#4244)....
r13504 end
end
end