Commit d6733662 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'dz-change-project-view' into 'master'

Change default project view for user from readme to files view

See merge request !9584
parents ce55e6e8 b3971d0f
......@@ -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,
......
---
title: Change default project view for user from readme to files view
merge_request: 9584
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment