BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b3971d0f
Unverified
Commit
b3971d0f
authored
Feb 28, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change default project view for user from readme to files view
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
b1864604
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
preferences_helper.rb
app/helpers/preferences_helper.rb
+2
-2
user.rb
app/models/user.rb
+1
-0
dz-change-project-view.yml
changelogs/unreleased/dz-change-project-view.yml
+4
-0
No files found.
app/helpers/preferences_helper.rb
View file @
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
...
...
app/models/user.rb
View file @
b3971d0f
...
...
@@ -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
,
...
...
changelogs/unreleased/dz-change-project-view.yml
0 → 100644
View file @
b3971d0f
---
title
:
Change default project view for user from readme to files view
merge_request
:
9584
author
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment