Commit 5099e73f authored by Luke Bennett's avatar Luke Bennett

Move new label to header_content

parent 8ce9a09d
- @no_container = true - @no_container = true
- page_title "Labels" - page_title "Labels"
- hide_class = ''
- can_admin_label = can?(current_user, :admin_label, @project) - 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? - if @labels.exists? || @prioritized_labels.exists?
#promote-label-modal #promote-label-modal
...@@ -12,11 +19,6 @@ ...@@ -12,11 +19,6 @@
- if can_admin_label - if can_admin_label
Star a label to make it a priority label. Order the prioritized labels to change their relative priority, by dragging. 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 .labels-container.prepend-top-5
- if can_admin_label - if can_admin_label
-# Only show it in the first page -# Only show it in the first page
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment