diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-07-24 13:28:00 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-07-24 13:28:00 +0000 |
commit | c76804071e121b96a8e97209273bed7a6da750ec (patch) | |
tree | 0c86e588b66a4193e2c7fa092adf87d4826b124d /app/views | |
parent | e5b9bcff21bce0a70cb7d20edaedb21a3975b3b1 (diff) | |
parent | 32c47aa348049a2714ab34f0040e516b7921b746 (diff) | |
download | gitlab-ce-c76804071e121b96a8e97209273bed7a6da750ec.tar.gz |
Merge branch 'new-nav-duplicated-new-milestone-buttons' into 'master'
Fixed duplicate new milestone buttons in new navigation
Closes #35454
See merge request !13033
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/milestones/index.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/milestones/index.html.haml b/app/views/projects/milestones/index.html.haml index a89387bc8f1..e0b29b0c2e1 100644 --- a/app/views/projects/milestones/index.html.haml +++ b/app/views/projects/milestones/index.html.haml @@ -1,7 +1,7 @@ - @no_container = true - page_title 'Milestones' -- if show_new_nav? +- if show_new_nav? && can?(current_user, :admin_milestone, @project) - content_for :breadcrumbs_extra do = link_to "New milestone", new_namespace_project_milestone_path(@project.namespace, @project), class: 'btn btn-new', title: 'New milestone' @@ -11,10 +11,10 @@ .top-area = render 'shared/milestones_filter', counts: milestone_counts(@project.milestones) - .nav-controls + .nav-controls{ class: ("nav-controls-new-nav" if show_new_nav?) } = render 'shared/milestones_sort_dropdown' - if can?(current_user, :admin_milestone, @project) - = link_to new_project_milestone_path(@project), class: 'btn btn-new', title: 'New milestone' do + = link_to new_project_milestone_path(@project), class: "btn btn-new #{("visible-xs" if show_new_nav?)}", title: 'New milestone' do New milestone .milestones |