summaryrefslogtreecommitdiff
path: root/app/views/projects/milestones/show.html.haml
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-01-28 11:18:08 -0500
committerRubén Dávila <rdavila84@gmail.com>2016-02-02 17:47:18 -0500
commit0a08b105801dd9eb0c32e2619a905650e7fe46e5 (patch)
tree30f547026bbdcbbf880a00b0d9693bc8d2526d59 /app/views/projects/milestones/show.html.haml
parentd151b3878877b74f2493015d8da7812448da1b41 (diff)
downloadgitlab-ce-0a08b105801dd9eb0c32e2619a905650e7fe46e5.tar.gz
Add link to open/closed issues plus some minor updates.
Diffstat (limited to 'app/views/projects/milestones/show.html.haml')
-rw-r--r--app/views/projects/milestones/show.html.haml25
1 files changed, 9 insertions, 16 deletions
diff --git a/app/views/projects/milestones/show.html.haml b/app/views/projects/milestones/show.html.haml
index afdf18a14c9..72506e6ecf7 100644
--- a/app/views/projects/milestones/show.html.haml
+++ b/app/views/projects/milestones/show.html.haml
@@ -120,9 +120,6 @@
= render 'merge_request', merge_request: merge_request
.tab-pane#tab-participants
- .content-block.oneline-block
- All participants to this milestone
-
%ul.bordered-list
- @users.each do |user|
%li
@@ -133,20 +130,16 @@
%small.cgray= user.username
.tab-pane#tab-labels
- .gray-content-block.middle-block
- .pull-right
- - if can?(current_user, :create_issue, @project)
- = link_to new_namespace_project_issue_path(@project.namespace, @project, issue: { milestone_id: @milestone.id }), class: "btn btn-grouped", title: "New Issue" do
- %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_title: @milestone.title), class: "btn btn-grouped"
-
- .oneline
- All labels in this milestone
%ul.bordered-list.manage-labels-list
- @labels.each do |label|
%li
= render_colored_label(label)
- %span.issues-count= pluralize label.open_issues_count, 'open issue'
- %span.issues-count= pluralize label.closed_issues_count, 'closed issue'
+ - args = [@milestone.project.namespace, @milestone.project, milestone_title: @milestone.title, label_name: label.title]
+ - options = args.extract_options!
+
+ %span.issues-count
+ = link_to namespace_project_issues_path(*args, options.merge(state: 'opened')) do
+ = pluralize label.open_issues_count, 'open issue'
+ %span.issues-count
+ = link_to namespace_project_issues_path(*args, options.merge(state: 'closed')) do
+ = pluralize label.closed_issues_count, 'closed issue'