diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-25 10:31:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-25 10:31:06 +0000 |
commit | 79f92a675af528ecbe5abcc15b9c98805c9c7315 (patch) | |
tree | c5c2f04a5b16bfc2d98fe03495bc83f902188ee0 /app/controllers/settings_controller.rb | |
parent | 3d5d1a38e3d48e1fda7eee751563cbf8c3b0f00b (diff) | |
download | redmine-79f92a675af528ecbe5abcc15b9c98805c9c7315.tar.gz redmine-79f92a675af528ecbe5abcc15b9c98805c9c7315.zip |
User display format is now configurable in administration settings.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1103 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/settings_controller.rb')
-rw-r--r-- | app/controllers/settings_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb index c5fae2a16..c7c8751dd 100644 --- a/app/controllers/settings_controller.rb +++ b/app/controllers/settings_controller.rb @@ -35,7 +35,10 @@ class SettingsController < ApplicationController end flash[:notice] = l(:notice_successful_update) redirect_to :action => 'edit', :tab => params[:tab] + return end + @options = {} + @options[:user_format] = User::USER_FORMATS.keys.collect {|f| [User.current.name(f), f.to_s] } end def plugin |