summaryrefslogtreecommitdiffstats
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-10-01 07:07:49 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-10-01 07:07:49 +0000
commitde0e0f09a33b20170468d9fdc67c4b5b7ac085d2 (patch)
tree4b8b128db77da21d3803bd98db2c4501b93b41ae /app/models/user.rb
parent5f794b5af5cd1f09ef1b9e6f8278d73ae079fc45 (diff)
downloadredmine-de0e0f09a33b20170468d9fdc67c4b5b7ac085d2.tar.gz
redmine-de0e0f09a33b20170468d9fdc67c4b5b7ac085d2.zip
pin user format order at setting panel (#10937)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10542 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb30
1 files changed, 25 insertions, 5 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 73c8d6c5d..bd1488fa0 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -28,11 +28,31 @@ class User < Principal
# Different ways of displaying/sorting users
USER_FORMATS = {
- :firstname_lastname => {:string => '#{firstname} #{lastname}', :order => %w(firstname lastname id)},
- :firstname => {:string => '#{firstname}', :order => %w(firstname id)},
- :lastname_firstname => {:string => '#{lastname} #{firstname}', :order => %w(lastname firstname id)},
- :lastname_coma_firstname => {:string => '#{lastname}, #{firstname}', :order => %w(lastname firstname id)},
- :username => {:string => '#{login}', :order => %w(login id)},
+ :firstname_lastname => {
+ :string => '#{firstname} #{lastname}',
+ :order => %w(firstname lastname id),
+ :setting_order => 1
+ },
+ :firstname => {
+ :string => '#{firstname}',
+ :order => %w(firstname id),
+ :setting_order => 2
+ },
+ :lastname_firstname => {
+ :string => '#{lastname} #{firstname}',
+ :order => %w(lastname firstname id),
+ :setting_order => 3
+ },
+ :lastname_coma_firstname => {
+ :string => '#{lastname}, #{firstname}',
+ :order => %w(lastname firstname id),
+ :setting_order => 4
+ },
+ :username => {
+ :string => '#{login}',
+ :order => %w(login id),
+ :setting_order => 5
+ },
}
MAIL_NOTIFICATION_OPTIONS = [