##// END OF EJS Templates
Added request and controller objects to the hooks by default....
Added request and controller objects to the hooks by default. The request and controller objects are now added to all hook contexts by default. This will also make url_for work better in hooks by setting up the default_url_options :host, :port, and :protocol. Finally a new helper method @render_or@ has been added to ViewListener. This will let a hook easily render a partial without a full method definition. Thanks to Thomas Löber for the original patch. #2542 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2429 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2273:99c2e989751a
r2368:5b7a5c39a7da
Show More
settings_helper.rb
30 lines | 1.7 KiB | text/x-ruby | RubyLexer
/ app / helpers / settings_helper.rb
Jean-Philippe Lang
settings are now stored in the database (config_custom.rb no more used) and editable through the application in: Admin -> Settings...
r164 # redMine - project management software
# Copyright (C) 2006-2007 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 SettingsHelper
Jean-Philippe Lang
Admin settings screen split to tabs....
r1033 def administration_settings_tabs
tabs = [{:name => 'general', :partial => 'settings/general', :label => :label_general},
Jean-Philippe Lang
Moves a few settings to a "Display" panel....
r2273 {:name => 'display', :partial => 'settings/display', :label => :label_display},
Jean-Philippe Lang
Admin settings screen split to tabs....
r1033 {:name => 'authentication', :partial => 'settings/authentication', :label => :label_authentication},
Jean-Philippe Lang
Adds an option to generate sequential project identifiers....
r1776 {:name => 'projects', :partial => 'settings/projects', :label => :label_project_plural},
Jean-Philippe Lang
Admin settings screen split to tabs....
r1033 {:name => 'issues', :partial => 'settings/issues', :label => :label_issue_tracking},
{:name => 'notifications', :partial => 'settings/notifications', :label => l(:field_mail_notification)},
Jean-Philippe Lang
Adds a simple API and a standalone script that can be used to forward emails from a local or remote email server to Redmine (#1110)....
r1570 {:name => 'mail_handler', :partial => 'settings/mail_handler', :label => l(:label_incoming_emails)},
Jean-Philippe Lang
Admin settings screen split to tabs....
r1033 {:name => 'repositories', :partial => 'settings/repositories', :label => :label_repository_plural}
]
end
Jean-Philippe Lang
settings are now stored in the database (config_custom.rb no more used) and editable through the application in: Admin -> Settings...
r164 end