Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
5ca74f9c1d75
Commit
099a2993
authored
Feb 18, 2016
by
Alfredo Sumaran
Browse files
Move visibility icon next to project title
parent
3dfe8212f4c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/assets/stylesheets/pages/projects.scss
View file @
5ca74f9c
...
...
@@ -73,24 +73,19 @@
font-weight
:
normal
;
}
.visibility-icon
{
display
:
inline-block
;
margin-left
:
5px
;
font-size
:
18px
;
color
:
$gray
;
}
p
{
padding
:
0
$gl-padding
;
color
:
#5c5d5e
;
}
}
.visibility-level-label
{
@extend
.btn
;
@extend
.btn-gray
;
color
:
$gray
;
cursor
:
default
;
i
{
color
:
inherit
;
}
}
.project-repo-buttons
{
margin-top
:
20px
;
margin-bottom
:
0px
;
...
...
app/views/projects/_home_panel.html.haml
View file @
5ca74f9c
...
...
@@ -3,7 +3,12 @@
.project-identicon-holder
=
project_icon
(
@project
,
alt:
''
,
class:
'project-avatar avatar s90'
)
.project-home-desc
%h1
=
@project
.
name
%h1
=
@project
.
name
%span
.visibility-icon.has_tooltip
{
data:
{
container:
'body'
},
title:
"#{visibility_level_label(@project.visibility_level)} - #{project_visibility_level_description(@project.visibility_level)}"
}
=
visibility_level_icon
(
@project
.
visibility_level
,
fw:
false
)
-
if
@project
.
description
.
present?
=
markdown
(
@project
.
description
,
pipeline: :description
)
...
...
@@ -12,10 +17,6 @@
Forked from
=
link_to
project_path
(
forked_from_project
)
do
=
forked_from_project
.
namespace
.
try
(
:name
)
.cover-controls.left
.visibility-level-label.has_tooltip
{
title:
project_visibility_level_description
(
@project
.
visibility_level
),
data:
{
container:
'body'
}
}
=
visibility_level_icon
(
@project
.
visibility_level
,
fw:
false
)
=
visibility_level_label
(
@project
.
visibility_level
)
.cover-controls
-
if
current_user
...
...
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