diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-05-25 14:36:41 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-05-27 15:23:04 +0300 |
commit | 511791014e032c8800c0b8b06130b73aad8505b5 (patch) | |
tree | 30597a21a883e2e754bf7dda476c687a4aeac209 /app/views | |
parent | 45e4727f97034f719b4fb2a061fd626f545db968 (diff) |
Fix milestone "Browse Issues" button.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/milestones/_milestone.html.haml | 4 | ||||
-rw-r--r-- | app/views/projects/milestones/show.html.haml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/milestones/_milestone.html.haml b/app/views/projects/milestones/_milestone.html.haml index 62360158ff9..14a0580f966 100644 --- a/app/views/projects/milestones/_milestone.html.haml +++ b/app/views/projects/milestones/_milestone.html.haml @@ -13,10 +13,10 @@ = milestone.expires_at .row .col-sm-6 - = link_to namespace_project_issues_path(milestone.project.namespace, milestone.project, milestone_id: milestone.id) do + = link_to namespace_project_issues_path(milestone.project.namespace, milestone.project, milestone_title: milestone.title) do = pluralize milestone.issues.count, 'Issue' - = link_to namespace_project_merge_requests_path(milestone.project.namespace, milestone.project, milestone_id: milestone.id) do + = link_to namespace_project_merge_requests_path(milestone.project.namespace, milestone.project, milestone_title: milestone.title) do = pluralize milestone.merge_requests.count, 'Merge Request' %span.light #{milestone.percent_complete}% complete diff --git a/app/views/projects/milestones/show.html.haml b/app/views/projects/milestones/show.html.haml index ee2139e75f6..417eaa1b09d 100644 --- a/app/views/projects/milestones/show.html.haml +++ b/app/views/projects/milestones/show.html.haml @@ -67,7 +67,7 @@ %i.fa.fa-plus New Issue - if can?(current_user, :read_issue, @project) - = link_to 'Browse Issues', namespace_project_issues_path(@milestone.project.namespace, @milestone.project, milestone_id: @milestone.id), class: "btn edit-milestone-link btn-grouped" + = link_to 'Browse Issues', namespace_project_issues_path(@milestone.project.namespace, @milestone.project, milestone_title: @milestone.title), class: "btn edit-milestone-link btn-grouped" .tab-content .tab-pane.active#tab-issues |