summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorElias Werberich <elias@werberich.de>2018-03-27 12:16:12 +0000
committerDouwe Maan <douwe@gitlab.com>2018-03-27 12:16:12 +0000
commit2308ab7a9f0e3efcc1c3a21626aaffc6207cf1aa (patch)
tree41cd53be894a970bb0521aa7c30cac5ae5a3e3f8 /app/helpers
parent463fe4062dacb5e124a24d245fb921b91f6d499b (diff)
downloadgitlab-ce-2308ab7a9f0e3efcc1c3a21626aaffc6207cf1aa.tar.gz
'Assigned Issues' and 'Assigned Merge Requests' as dashboard user choices
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/preferences_helper.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/app/helpers/preferences_helper.rb b/app/helpers/preferences_helper.rb
index 373dfd457f7..fb523cb865b 100644
--- a/app/helpers/preferences_helper.rb
+++ b/app/helpers/preferences_helper.rb
@@ -9,12 +9,14 @@ module PreferencesHelper
# Maps `dashboard` values to more user-friendly option text
DASHBOARD_CHOICES = {
- projects: 'Your Projects (default)',
- stars: 'Starred Projects',
- project_activity: "Your Projects' Activity",
- starred_project_activity: "Starred Projects' Activity",
- groups: "Your Groups",
- todos: "Your Todos"
+ projects: _("Your Projects (default)"),
+ stars: _("Starred Projects"),
+ project_activity: _("Your Projects' Activity"),
+ starred_project_activity: _("Starred Projects' Activity"),
+ groups: _("Your Groups"),
+ todos: _("Your Todos"),
+ issues: _("Assigned Issues"),
+ merge_requests: _("Assigned Merge Requests")
}.with_indifferent_access.freeze
# Returns an Array usable by a select field for more user-friendly option text