Commit 0a08b105 authored by Rubén Dávila's avatar Rubén Dávila

Add link to open/closed issues plus some minor updates.

parent d151b387
......@@ -3,4 +3,3 @@
%ul{ class: "well-list merge_requests-sortable-list", id: "merge_requests-list-#{id}", "data-state" => id }
- merge_requests.sort_by(&:position).each do |merge_request|
= render 'merge_request', merge_request: merge_request
%li.light.ui-sort-disabled Drag and drop available
......@@ -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'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment