summaryrefslogtreecommitdiff
path: root/app/views/projects/milestones
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-07-03 10:45:40 +0100
committerPhil Hughes <me@iamphill.com>2017-07-03 10:45:40 +0100
commite95f81d2271f0b82f63e16cd6c7e3d0734084e03 (patch)
treee97b2beec6630827fbb52615651ddb5757142686 /app/views/projects/milestones
parent4eb6b7c13755a8f73508f290f8f869cf05a15271 (diff)
downloadgitlab-ce-e95f81d2271f0b82f63e16cd6c7e3d0734084e03.tar.gz
Contextual breadcrumb title fixes
Also moves action buttons into the new breadcrumbs Closes #34030, #34033
Diffstat (limited to 'app/views/projects/milestones')
-rw-r--r--app/views/projects/milestones/index.html.haml8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/projects/milestones/index.html.haml b/app/views/projects/milestones/index.html.haml
index e1096bd1d67..63522a11b9d 100644
--- a/app/views/projects/milestones/index.html.haml
+++ b/app/views/projects/milestones/index.html.haml
@@ -1,5 +1,10 @@
- @no_container = true
- page_title 'Milestones'
+
+- if show_new_nav?
+ - content_for :breadcrumbs_extra do
+ = link_to "New milestone", new_namespace_project_milestone_path(@project.namespace, @project), class: 'btn btn-new', title: 'New milestone'
+
= render "shared/mr_head"
%div{ class: container_class }
@@ -9,8 +14,7 @@
.nav-controls
= render 'shared/milestones_sort_dropdown'
- if can?(current_user, :admin_milestone, @project)
- = link_to new_namespace_project_milestone_path(@project.namespace, @project), class: 'btn btn-new', title: 'New milestone' do
- New milestone
+ = link_to "New milestone", new_namespace_project_milestone_path(@project.namespace, @project), class: "btn btn-new #{("visible-xs hidden-sm hidden-md hidden-lg" if show_new_nav?)}", title: 'New milestone'
.milestones
%ul.content-list