##// END OF EJS Templates
Speeds up rendering of the project list for users who belong to hundreds of projects....
Speeds up rendering of the project list for users who belong to hundreds of projects. git-svn-id: http://svn.redmine.org/redmine/trunk@16123 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r14889:eaea4e9fee7e
r15741:f8df935dcada
Show More
email_addresses_helper.rb
38 lines | 1.5 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
Jean-Philippe Lang
Updates copyright for 2016....
r14856 # Copyright (C) 2006-2016 Jean-Philippe Lang
Jean-Philippe Lang
Add support for multiple email addresses per user (#4244)....
r13504 #
# 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
Improve accessibility for icon-only links by adding hidden text (#21805)....
r14889 link_to l(:label_disable_notifications),
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
Improve accessibility for icon-only links by adding hidden text (#21805)....
r14889 :class => 'icon-only icon-email'
Jean-Philippe Lang
Add support for multiple email addresses per user (#4244)....
r13504 else
Jean-Philippe Lang
Improve accessibility for icon-only links by adding hidden text (#21805)....
r14889 link_to l(:label_enable_notifications),
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
Improve accessibility for icon-only links by adding hidden text (#21805)....
r14889 :class => 'icon-only icon-email-disabled'
Jean-Philippe Lang
Add support for multiple email addresses per user (#4244)....
r13504 end
end
end