diff options
Diffstat (limited to 'app/helpers/preferences_helper.rb')
-rw-r--r-- | app/helpers/preferences_helper.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/app/helpers/preferences_helper.rb b/app/helpers/preferences_helper.rb index eed529f93db..7890cd0ab64 100644 --- a/app/helpers/preferences_helper.rb +++ b/app/helpers/preferences_helper.rb @@ -4,22 +4,22 @@ module PreferencesHelper def layout_choices [ - ['Fixed', :fixed], - ['Fluid', :fluid] + ["Fixed", :fixed], + ["Fluid", :fluid], ] end # Maps `dashboard` values to more user-friendly option text DASHBOARD_CHOICES = { projects: _("Your Projects (default)"), - stars: _("Starred Projects"), + 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"), - operations: _("Operations Dashboard") + operations: _("Operations Dashboard"), }.with_indifferent_access.freeze # Returns an Array usable by a select field for more user-friendly option text @@ -37,21 +37,21 @@ module PreferencesHelper def project_view_choices [ - ['Files and Readme (default)', :files], - ['Activity', :activity], - ['Readme', :readme] + ["Files and Readme (default)", :files], + ["Activity", :activity], + ["Readme", :readme], ] end def first_day_of_week_choices [ - [_('Sunday'), 0], - [_('Monday'), 1] + [_("Sunday"), 0], + [_("Monday"), 1], ] end def first_day_of_week_choices_with_default - first_day_of_week_choices.unshift([_('System default (%{default})') % { default: default_first_day_of_week }, nil]) + first_day_of_week_choices.unshift([_("System default (%{default})") % {default: default_first_day_of_week}, nil]) end def user_application_theme @@ -79,7 +79,7 @@ module PreferencesHelper # List of dashboard choice to be excluded from CE. # EE would override this. def excluded_dashboard_choices - ['operations'] + ["operations"] end def default_first_day_of_week |