diff options
author | Fabian Schneider <fabbbbbi+git@googlemail.com> | 2018-11-07 00:16:49 +0300 |
---|---|---|
committer | Fabian Schneider <fabbbbbi+git@googlemail.com> | 2019-02-06 19:33:56 +0300 |
commit | 27f7771ae1a4b5f9d973a55ccbbbe30b0e05f100 (patch) | |
tree | 6848af95359ff3cb1d84259df159a620b4b64bd5 /app/helpers | |
parent | 20c83bbdb0a9729a308957397b37a2569486116f (diff) |
Add setting for first day of the week
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_settings_helper.rb | 1 | ||||
-rw-r--r-- | app/helpers/preferences_helper.rb | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb index c8e4e2e3df9..667c5097d91 100644 --- a/app/helpers/application_settings_helper.rb +++ b/app/helpers/application_settings_helper.rb @@ -136,6 +136,7 @@ module ApplicationSettingsHelper :container_registry_token_expire_delay, :default_artifacts_expire_in, :default_branch_protection, + :default_first_day_of_week, :default_group_visibility, :default_project_visibility, :default_projects_limit, diff --git a/app/helpers/preferences_helper.rb b/app/helpers/preferences_helper.rb index f4f46b0fe96..301608175b2 100644 --- a/app/helpers/preferences_helper.rb +++ b/app/helpers/preferences_helper.rb @@ -43,6 +43,13 @@ module PreferencesHelper ] end + def first_day_of_week_choices + [ + ['Sunday', 0], + ['Monday', 1] + ] + end + def user_application_theme @user_application_theme ||= Gitlab::Themes.for_user(current_user).css_class end |