module SettingsHelper
def administration_settings_tabs
- tabs = [{:name => 'general', :partial => 'settings/general', :label => :label_general},
- {:name => 'display', :partial => 'settings/display', :label => :label_display},
- {:name => 'authentication', :partial => 'settings/authentication', :label => :label_authentication},
- {:name => 'api', :partial => 'settings/api', :label => :label_api},
- {:name => 'projects', :partial => 'settings/projects', :label => :label_project_plural},
- {:name => 'users', :partial => 'settings/users', :label => :label_user_plural},
- {:name => 'issues', :partial => 'settings/issues', :label => :label_issue_tracking},
- {:name => 'timelog', :partial => 'settings/timelog', :label => :label_time_tracking},
- {:name => 'attachments', :partial => 'settings/attachments', :label => :label_attachment_plural},
- {:name => 'notifications', :partial => 'settings/notifications', :label => :field_mail_notification},
- {:name => 'mail_handler', :partial => 'settings/mail_handler', :label => :label_incoming_emails},
- {:name => 'repositories', :partial => 'settings/repositories', :label => :label_repository_plural}
- ]
+ tabs =
+ [
+ {:name => 'general', :partial => 'settings/general', :label => :label_general},
+ {:name => 'display', :partial => 'settings/display', :label => :label_display},
+ {:name => 'authentication', :partial => 'settings/authentication',
+ :label => :label_authentication},
+ {:name => 'api', :partial => 'settings/api', :label => :label_api},
+ {:name => 'projects', :partial => 'settings/projects', :label => :label_project_plural},
+ {:name => 'users', :partial => 'settings/users', :label => :label_user_plural},
+ {:name => 'issues', :partial => 'settings/issues', :label => :label_issue_tracking},
+ {:name => 'timelog', :partial => 'settings/timelog', :label => :label_time_tracking},
+ {:name => 'attachments', :partial => 'settings/attachments',
+ :label => :label_attachment_plural},
+ {:name => 'notifications', :partial => 'settings/notifications',
+ :label => :field_mail_notification},
+ {:name => 'mail_handler', :partial => 'settings/mail_handler',
+ :label => :label_incoming_emails},
+ {:name => 'repositories', :partial => 'settings/repositories',
+ :label => :label_repository_plural}
+ ]
end
def render_settings_error(errors)