summaryrefslogtreecommitdiffstats
path: root/app/helpers/users_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 07:13:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 07:13:54 +0000
commit04b8be1d5b9654b08ac5e2566f5ed63f3f02d787 (patch)
tree2d68c44f7015394c7e58f6d08904995bcef10016 /app/helpers/users_helper.rb
parentd3e51b4235a1c53b0ad042397a7b2ad893fc6dcc (diff)
downloadredmine-04b8be1d5b9654b08ac5e2566f5ed63f3f02d787.tar.gz
redmine-04b8be1d5b9654b08ac5e2566f5ed63f3f02d787.zip
User preference for issue history default tab (#3058).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18277 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/users_helper.rb')
-rw-r--r--app/helpers/users_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb
index 6b908edca..dece86165 100644
--- a/app/helpers/users_helper.rb
+++ b/app/helpers/users_helper.rb
@@ -33,6 +33,15 @@ module UsersHelper
[[l(:label_font_default), '']] + UserPreference::TEXTAREA_FONT_OPTIONS.map {|o| [l("label_font_#{o}"), o]}
end
+ def history_default_tab_options
+ [[l('label_issue_history_notes'), 'notes'],
+ [l('label_history'), 'history'],
+ [l('label_issue_history_properties'), 'properties'],
+ [l('label_time_entry_plural'), 'time_entries'],
+ [l('label_associated_revisions'), 'changesets'],
+ [l('label_last_tab_visited'), 'last_tab_visited']]
+ end
+
def change_status_link(user)
url = {:controller => 'users', :action => 'update', :id => user, :page => params[:page], :status => params[:status], :tab => nil}