Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
2996edcbae5a
Unverified
Commit
05de390f
authored
Dec 26, 2013
by
Dmitriy Zaporozhets
Browse files
Style project visibility icons on dashboard
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
103d1e2aa4ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/assets/stylesheets/sections/dashboard.scss
View file @
2996edcb
...
...
@@ -66,7 +66,7 @@
}
.project-row
,
.group-row
{
padding
:
10px
1
5
px
!
important
;
padding
:
10px
1
2
px
!
important
;
.namespace-name
{
color
:
#666
;
...
...
@@ -122,3 +122,13 @@
color
:
#BBB
;
}
}
.dash-project-access-icon
{
float
:
left
;
margin-right
:
10px
;
font-size
:
18px
;
color
:
#BBB
;
margin-bottom
:
10px
;
margin-top
:
2px
;
width
:
16px
;
}
app/views/dashboard/_project.html.haml
View file @
2996edcb
=
link_to
project_path
(
project
),
class:
dom_class
(
project
)
do
=
visibility_level_icon
(
project
.
visibility_level
)
.dash-project-access-icon
=
visibility_level_icon
(
project
.
visibility_level
)
%span
.namespace-name
-
if
project
.
namespace
=
project
.
namespace
.
human_name
...
...
app/views/groups/_projects.html.haml
View file @
2996edcb
...
...
@@ -12,7 +12,8 @@
-
projects
.
each
do
|
project
|
%li
.project-row
=
link_to
project_path
(
project
),
class:
dom_class
(
project
)
do
=
visibility_level_icon
(
project
.
visibility_level
)
.dash-project-access-icon
=
visibility_level_icon
(
project
.
visibility_level
)
%span
.project-name
=
truncate
(
project
.
name
,
length:
25
)
%span
.arrow
...
...
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