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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
47e6df1b
Commit
47e6df1b
authored
Nov 01, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update project and group labels empty state
parent
88224cce
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
app/views/groups/labels/index.html.haml
app/views/groups/labels/index.html.haml
+1
-1
app/views/projects/labels/index.html.haml
app/views/projects/labels/index.html.haml
+1
-1
app/views/shared/empty_states/_labels.html.haml
app/views/shared/empty_states/_labels.html.haml
+6
-3
changelogs/unreleased/gt-update-project-and-group-labels-empty-state.yml
...leased/gt-update-project-and-group-labels-empty-state.yml
+5
-0
No files found.
app/views/groups/labels/index.html.haml
View file @
47e6df1b
...
...
@@ -6,7 +6,7 @@
-
subscribed
=
params
[
:subscribed
]
-
labels_or_filters
=
@labels
.
exists?
||
search
.
present?
||
subscribed
.
present?
-
if
can_admin_label
-
if
@labels
.
present?
&&
can_admin_label
-
content_for
(
:header_content
)
do
.nav-controls
=
link_to
_
(
'New label'
),
new_group_label_path
(
@group
),
class:
"btn btn-success"
...
...
app/views/projects/labels/index.html.haml
View file @
47e6df1b
...
...
@@ -5,7 +5,7 @@
-
subscribed
=
params
[
:subscribed
]
-
labels_or_filters
=
@labels
.
exists?
||
@prioritized_labels
.
exists?
||
search
.
present?
||
subscribed
.
present?
-
if
can_admin_label
-
if
@labels
.
present?
&&
can_admin_label
-
content_for
(
:header_content
)
do
.nav-controls
=
link_to
_
(
'New label'
),
new_project_label_path
(
@project
),
class:
"btn btn-success qa-label-create-new"
...
...
app/views/shared/empty_states/_labels.html.haml
View file @
47e6df1b
...
...
@@ -6,6 +6,9 @@
.text-content
%h4
=
_
(
"Labels can be applied to issues and merge requests to categorize them."
)
%p
=
_
(
"You can also star a label to make it a priority label."
)
.text-center
-
if
can?
(
current_user
,
:admin_label
,
@project
)
=
link_to
_
(
'New label'
),
new_project_label_path
(
@project
),
class:
'btn btn-success'
,
title:
_
(
'New label'
),
id:
'new_label_link'
=
link_to
_
(
'Generate a default set of labels'
),
generate_project_labels_path
(
@project
),
method: :post
,
class:
'btn btn-success btn-inverted'
,
title:
_
(
'Generate a default set of labels'
),
id:
'generate_labels_link'
-
if
can?
(
current_user
,
:admin_label
,
@group
)
=
link_to
_
(
'New label'
),
new_group_label_path
(
@group
),
class:
'btn btn-success'
,
title:
_
(
'New label'
),
id:
'new_label_link'
changelogs/unreleased/gt-update-project-and-group-labels-empty-state.yml
0 → 100644
View file @
47e6df1b
---
title
:
George Tsiolis Update project and group labels empty state
merge_request
:
22745
author
:
George Tsiolis
type
:
changed
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