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
10a7478e
Commit
10a7478e
authored
Aug 25, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix disabled state style for visibility level options
parent
69f679ed
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
settings.scss
app/assets/stylesheets/pages/settings.scss
+7
-1
_visibility_radios.html.haml
app/views/shared/_visibility_radios.html.haml
+4
-3
No files found.
app/assets/stylesheets/pages/settings.scss
View file @
10a7478e
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
.radio
{
.radio
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
i
{
i
.fa
{
margin
:
2px
0
;
margin
:
2px
0
;
font-size
:
20px
;
font-size
:
20px
;
}
}
...
@@ -162,6 +162,12 @@
...
@@ -162,6 +162,12 @@
margin-left
:
29px
;
margin-left
:
29px
;
color
:
$project-option-descr-color
;
color
:
$project-option-descr-color
;
}
}
&
.disabled
{
i
.fa
{
opacity
:
0
.5
;
}
}
}
}
}
}
...
...
app/views/shared/_visibility_radios.html.haml
View file @
10a7478e
-
Gitlab
::
VisibilityLevel
.
values
.
each
do
|
level
|
-
Gitlab
::
VisibilityLevel
.
values
.
each
do
|
level
|
-
next
if
disallowed_visibility_level?
(
form_model
,
level
)
-
disallowed
=
disallowed_visibility_level?
(
form_model
,
level
)
.radio
-
restricted
=
restricted_visibility_levels
.
include?
(
level
)
-
restricted
=
restricted_visibility_levels
.
include?
(
level
)
-
disabled
=
disallowed
||
restricted
.radio
{
class:
[(
'disabled'
if
disabled
),
(
'restricted'
if
restricted
)]
}
=
form
.
label
"
#{
model_method
}
_
#{
level
}
"
do
=
form
.
label
"
#{
model_method
}
_
#{
level
}
"
do
=
form
.
radio_button
model_method
,
level
,
checked:
(
selected_level
==
level
),
disabled:
restrict
ed
=
form
.
radio_button
model_method
,
level
,
checked:
(
selected_level
==
level
),
disabled:
disabl
ed
=
visibility_level_icon
(
level
)
=
visibility_level_icon
(
level
)
.option-title
.option-title
=
visibility_level_label
(
level
)
=
visibility_level_label
(
level
)
...
...
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