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
d6733662
Commit
d6733662
authored
Mar 04, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
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
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 @
d6733662
...
...
@@ -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 @
d6733662
...
...
@@ -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 @
d6733662
---
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