Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Schneider <fabbbbbi+git@googlemail.com>2018-11-07 00:16:49 +0300
committerFabian Schneider <fabbbbbi+git@googlemail.com>2019-02-06 19:33:56 +0300
commit27f7771ae1a4b5f9d973a55ccbbbe30b0e05f100 (patch)
tree6848af95359ff3cb1d84259df159a620b4b64bd5 /lib/gitlab/gon_helper.rb
parent20c83bbdb0a9729a308957397b37a2569486116f (diff)
Add setting for first day of the week
Diffstat (limited to 'lib/gitlab/gon_helper.rb')
-rw-r--r--lib/gitlab/gon_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/gon_helper.rb b/lib/gitlab/gon_helper.rb
index 9b1794eec91..f0af5329d76 100644
--- a/lib/gitlab/gon_helper.rb
+++ b/lib/gitlab/gon_helper.rb
@@ -24,12 +24,14 @@ module Gitlab
gon.emoji_sprites_css_path = ActionController::Base.helpers.stylesheet_path('emoji_sprites')
gon.test_env = Rails.env.test?
gon.suggested_label_colors = LabelsHelper.suggested_colors
+ gon.first_day_of_week = Gitlab::CurrentSettings.default_first_day_of_week
if current_user
gon.current_user_id = current_user.id
gon.current_username = current_user.username
gon.current_user_fullname = current_user.name
gon.current_user_avatar_url = current_user.avatar_url
+ gon.first_day_of_week = current_user.first_day_of_week if current_user.first_day_of_week
end
end