Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
26b0fe8d
Commit
26b0fe8d
authored
Nov 22, 2016
by
Annabel Dunstone Gray
Committed by
Luke "Jared" Bennett
Dec 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align permissions options
parent
63c3ba7a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
56 deletions
+49
-56
app/assets/javascripts/visibility_select.js.es6
app/assets/javascripts/visibility_select.js.es6
+1
-1
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+15
-21
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+33
-34
No files found.
app/assets/javascripts/visibility_select.js.es6
View file @
26b0fe8d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
const VISIBILITY_DESCRIPTIONS = {
const VISIBILITY_DESCRIPTIONS = {
0: 'Project access must be granted explicitly to each user.',
0: 'Project access must be granted explicitly to each user.',
10: '
Project access must be granted explicitly to each
user.',
10: '
This project can be cloned by any logged in
user.',
20: 'The project can be cloned without any authentication.',
20: 'The project can be cloned without any authentication.',
};
};
...
...
app/assets/stylesheets/pages/projects.scss
View file @
26b0fe8d
...
@@ -15,29 +15,17 @@
...
@@ -15,29 +15,17 @@
.new_project
,
.new_project
,
.edit-project
{
.edit-project
{
.visibility-select-container
{
.sharing-and-permissions
{
padding-left
:
26px
;
.header
{
padding-top
:
$gl-vert-padding
;
@media
(
max-width
:
$screen-md-min
)
{
padding-left
:
15px
;
}
}
}
fieldset
{
&
.features
{
.header
{
.label-light
{
padding-top
:
$gl-vert-padding
;
margin-bottom
:
0
;
}
}
.label-light
{
margin-bottom
:
0
;
}
.help-block
{
.help-block
{
margin-top
:
0
;
margin-top
:
0
;
}
}
}
.form-group
{
.form-group
{
...
@@ -876,10 +864,16 @@ pre.light-well {
...
@@ -876,10 +864,16 @@ pre.light-well {
}
}
}
}
.project-feature
-nested
{
.project-feature
{
@media
(
min-width
:
$screen-sm-min
)
{
@media
(
min-width
:
$screen-sm-min
)
{
padding-left
:
45px
;
padding-left
:
45px
;
}
}
&
.nested
{
@media
(
min-width
:
$screen-sm-min
)
{
padding-left
:
90px
;
}
}
}
}
.project-repo-select
{
.project-repo-select
{
...
...
app/views/projects/edit.html.haml
View file @
26b0fe8d
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
%fieldset
.append-bottom-0
%fieldset
.append-bottom-0
%h5
.prepend-top-0
%h5
.prepend-top-0
Sharing
&
Permissions
Sharing
&
Permissions
.form_group.prepend-top-20
.form_group.prepend-top-20
.sharing-and-permissions
.row.js-visibility-select
.row.js-visibility-select
.col-md-9
.col-md-9
%label
.label-light
%label
.label-light
...
@@ -40,48 +40,47 @@
...
@@ -40,48 +40,47 @@
=
render
(
'shared/visibility_select'
,
model_method: :visibility_level
,
form:
f
,
selected_level:
@project
.
visibility_level
)
=
render
(
'shared/visibility_select'
,
model_method: :visibility_level
,
form:
f
,
selected_level:
@project
.
visibility_level
)
=
f
.
fields_for
:project_feature
do
|
feature_fields
|
=
f
.
fields_for
:project_feature
do
|
feature_fields
|
%fieldset
.features
%fieldset
.features
.row
.project-feature-nested
.row
.col-md-9.
header
.col-md-9.
project-feature
=
feature_fields
.
label
:repository_access_level
,
"Repository"
,
class:
'label-light'
=
feature_fields
.
label
:repository_access_level
,
"Repository"
,
class:
'label-light'
%span
.help-block
Push files to be stored in this project
%span
.help-block
Push files to be stored in this project
.col-md-3.js-repo-access-level
.col-md-3.js-repo-access-level
=
project_feature_access_select
(
:repository_access_level
)
=
project_feature_access_select
(
:repository_access_level
)
.col-sm-12
.row
.row.project-feature-nested
.col-md-9.project-feature.nested
.col-md-9.header
=
feature_fields
.
label
:merge_requests_access_level
,
"Merge requests"
,
class:
'label-light'
=
feature_fields
.
label
:merge_requests_access_level
,
"Merge requests"
,
class:
'label-light'
%span
.help-block
Submit changes to be merged upstream
%span
.help-block
Submit changes to be merged upstream
.col-md-3
.col-md-3
=
project_feature_access_select
(
:merge_requests_access_level
)
=
project_feature_access_select
(
:merge_requests_access_level
)
.row.project-feature-nested
.row
.col-md-9.header
.col-md-9.project-feature.nested
=
feature_fields
.
label
:builds_access_level
,
"Builds"
,
class:
'label-light'
=
feature_fields
.
label
:builds_access_level
,
"Builds"
,
class:
'label-light'
%span
.help-block
Submit, test and deploy your changes before merge
%span
.help-block
Submit, test and deploy your changes before merge
.col-md-3.double-nested
.col-md-3
=
project_feature_access_select
(
:builds_access_level
)
=
project_feature_access_select
(
:builds_access_level
)
.row
.row
.col-md-9.header
.col-md-9.project-feature
=
feature_fields
.
label
:snippets_access_level
,
"Snippets"
,
class:
'label-light'
=
feature_fields
.
label
:snippets_access_level
,
"Snippets"
,
class:
'label-light'
%span
.help-block
Share code pastes with others out of Git repository
%span
.help-block
Share code pastes with others out of Git repository
.col-md-3
.col-md-3
=
project_feature_access_select
(
:snippets_access_level
)
=
project_feature_access_select
(
:snippets_access_level
)
.row
.row
.col-md-9.header
.col-md-9.project-feature
=
feature_fields
.
label
:issues_access_level
,
"Issues"
,
class:
'label-light'
=
feature_fields
.
label
:issues_access_level
,
"Issues"
,
class:
'label-light'
%span
.help-block
Lightweight issue tracking system for this project
%span
.help-block
Lightweight issue tracking system for this project
.col-md-3
.col-md-3
=
project_feature_access_select
(
:issues_access_level
)
=
project_feature_access_select
(
:issues_access_level
)
.row
.row
.col-md-9.header
.col-md-9.project-feature
=
feature_fields
.
label
:wiki_access_level
,
"Wiki"
,
class:
'label-light'
=
feature_fields
.
label
:wiki_access_level
,
"Wiki"
,
class:
'label-light'
%span
.help-block
Pages for project documentation
%span
.help-block
Pages for project documentation
.col-md-3
.col-md-3
=
project_feature_access_select
(
:wiki_access_level
)
=
project_feature_access_select
(
:wiki_access_level
)
.form-group
.form-group
=
render
'shared/allow_request_access'
,
form:
f
=
render
'shared/allow_request_access'
,
form:
f
-
if
Gitlab
.
config
.
lfs
.
enabled
&&
current_user
.
admin?
-
if
Gitlab
.
config
.
lfs
.
enabled
&&
current_user
.
admin?
...
...
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