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
Tatuya Kamada
gitlab-ce
Commits
701544fb
Commit
701544fb
authored
Sep 20, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hides project/group labels section if there are none
parent
2910896b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
app/views/projects/labels/index.html.haml
app/views/projects/labels/index.html.haml
+4
-6
No files found.
app/views/projects/labels/index.html.haml
View file @
701544fb
...
...
@@ -18,28 +18,26 @@
-# Only show it in the first page
-
hide
=
params
[
:page
].
present?
&&
params
[
:page
]
!=
'1'
-
if
can?
(
current_user
,
:admin_label
,
@project
)
.prioritized-labels
{
class:
(
'hid
e
'
if
hide
)
}
.prioritized-labels
{
class:
(
'hid
den
'
if
hide
)
}
%h5
Prioritized Labels
%ul
.content-list.manage-labels-list.js-prioritized-labels
{
"data-url"
=>
set_priorities_namespace_project_labels_path
(
@project
.
namespace
,
@project
)
}
%p
.empty-message
{
class:
(
'hidden'
unless
@prioritized_labels
.
empty?
)
}
No prioritized labels yet
-
if
@prioritized_labels
.
present?
=
render
partial:
'shared/label'
,
collection:
@prioritized_labels
,
as: :label
.group-labels
{
class:
(
'hid
e'
if
hide
||
@project
.
group
.
blank
?
)
}
.group-labels
{
class:
(
'hid
den'
if
hide
||
@project
.
group
.
blank?
||
@group_labels
.
empty
?
)
}
%h5
=
icon
(
'folder-open'
)
Group Labels
%ul
.content-list.manage-labels-list.js-group-labels
%p
.empty-message
{
class:
(
'hidden'
unless
@group_labels
.
empty?
)
}
No group labels
-
if
@group_labels
.
present?
=
render
partial:
'shared/label'
,
collection:
@group_labels
,
as: :label
.project-labels
%h5
{
class:
(
'hid
e
'
if
hide
)
}
.project-labels
{
class:
(
'hidden'
if
@project_labels
.
empty?
)
}
%h5
{
class:
(
'hid
den
'
if
hide
)
}
=
icon
(
'bookmark'
)
Project Labels
%ul
.content-list.manage-labels-list.js-project-labels
%p
.empty-message
{
class:
(
'hidden'
unless
@project_labels
.
empty?
)
}
No project labels
-
if
@project_labels
.
present?
=
render
partial:
'shared/label'
,
collection:
@project_labels
,
as: :label
=
paginate
@project_labels
,
theme:
'gitlab'
...
...
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