Change default project view for user from readme to files view
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
b18646040c
commit
b3971d0f21
3 changed files with 7 additions and 2 deletions
|
@ -35,9 +35,9 @@ module PreferencesHelper
|
|||
|
||||
def project_view_choices
|
||||
[
|
||||
['Readme (default)', :readme],
|
||||
['Readme', :readme],
|
||||
['Activity view', :activity],
|
||||
['Files view', :files]
|
||||
['Files and Readme (default)', :files]
|
||||
]
|
||||
end
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ class User < ActiveRecord::Base
|
|||
default_value_for :can_create_team, false
|
||||
default_value_for :hide_no_ssh_key, false
|
||||
default_value_for :hide_no_password, false
|
||||
default_value_for :project_view, :files
|
||||
|
||||
attr_encrypted :otp_secret,
|
||||
key: Gitlab::Application.secrets.otp_key_base,
|
||||
|
|
4
changelogs/unreleased/dz-change-project-view.yml
Normal file
4
changelogs/unreleased/dz-change-project-view.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Change default project view for user from readme to files view
|
||||
merge_request: 9584
|
||||
author:
|
Loading…
Reference in a new issue