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
5099e73f
Commit
5099e73f
authored
Apr 19, 2018
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move new label to header_content
parent
8ce9a09d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
app/views/projects/labels/index.html.haml
app/views/projects/labels/index.html.haml
+8
-6
No files found.
app/views/projects/labels/index.html.haml
View file @
5099e73f
-
@no_container
=
true
-
page_title
"Labels"
-
hide_class
=
''
-
can_admin_label
=
can?
(
current_user
,
:admin_label
,
@project
)
-
hide_class
=
''
-
if
can_admin_label
-
content_for
(
:header_content
)
do
.nav-controls
=
link_to
new_project_label_path
(
@project
),
class:
"btn btn-new"
do
New label
-
if
@labels
.
exists?
||
@prioritized_labels
.
exists?
#promote-label-modal
...
...
@@ -12,11 +19,6 @@
-
if
can_admin_label
Star a label to make it a priority label. Order the prioritized labels to change their relative priority, by dragging.
-
if
can_admin_label
.nav-controls
=
link_to
new_project_label_path
(
@project
),
class:
"btn btn-new"
do
New label
.labels-container.prepend-top-5
-
if
can_admin_label
-# Only show it in the first page
...
...
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