diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-03 12:45:40 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-03 12:45:40 +0300 |
commit | e95f81d2271f0b82f63e16cd6c7e3d0734084e03 (patch) | |
tree | e97b2beec6630827fbb52615651ddb5757142686 /app/views/projects/labels | |
parent | 4eb6b7c13755a8f73508f290f8f869cf05a15271 (diff) |
Contextual breadcrumb title fixes
Also moves action buttons into the new breadcrumbs
Closes #34030, #34033
Diffstat (limited to 'app/views/projects/labels')
-rw-r--r-- | app/views/projects/labels/index.html.haml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/views/projects/labels/index.html.haml b/app/views/projects/labels/index.html.haml index fc72c4fb635..0a63325f26e 100644 --- a/app/views/projects/labels/index.html.haml +++ b/app/views/projects/labels/index.html.haml @@ -1,6 +1,11 @@ - @no_container = true - page_title "Labels" - hide_class = '' + +- if show_new_nav? && can?(current_user, :admin_label, @project) + - content_for :breadcrumbs_extra do + = link_to "New label", new_namespace_project_label_path(@project.namespace, @project), class: "btn btn-new" + = render "shared/mr_head" - if @labels.exists? || @prioritized_labels.exists? @@ -9,10 +14,9 @@ .nav-text Labels can be applied to issues and merge requests. Star a label to make it a priority label. Order the prioritized labels to change their relative priority, by dragging. - .nav-controls + .nav-controls{ class: ("visible-xs" if show_new_nav?) } - if can?(current_user, :admin_label, @project) - = link_to new_namespace_project_label_path(@project.namespace, @project), class: "btn btn-new" do - New label + = link_to "New label", new_namespace_project_label_path(@project.namespace, @project), class: "btn btn-new" .labels - if can?(current_user, :admin_label, @project) |