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:
Dmitriy Zaporozhets 2017-02-28 17:08:46 +02:00
parent b18646040c
commit b3971d0f21
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
3 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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,

View file

@ -0,0 +1,4 @@
---
title: Change default project view for user from readme to files view
merge_request: 9584
author: