summaryrefslogtreecommitdiff
path: root/app/views/projects/milestones/show.html.haml
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-01-27 12:38:03 -0500
committerRubén Dávila <rdavila84@gmail.com>2016-02-02 17:45:42 -0500
commit7ecd30a840fb00f7a3831adba5349cb89ecfb104 (patch)
tree7a95fe8c6d8d7e1d0f6dd70cd344405b5a65f722 /app/views/projects/milestones/show.html.haml
parent2c31ebff889a0bee1ef6c56ff80a56deebc2d67b (diff)
downloadgitlab-ce-7ecd30a840fb00f7a3831adba5349cb89ecfb104.tar.gz
Align Milestone's issue counter.
Diffstat (limited to 'app/views/projects/milestones/show.html.haml')
-rw-r--r--app/views/projects/milestones/show.html.haml16
1 files changed, 13 insertions, 3 deletions
diff --git a/app/views/projects/milestones/show.html.haml b/app/views/projects/milestones/show.html.haml
index a8bcad3bbd2..a9cf7e96359 100644
--- a/app/views/projects/milestones/show.html.haml
+++ b/app/views/projects/milestones/show.html.haml
@@ -143,10 +143,20 @@
%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)
- .pull-right
- %span.issues-count= pluralize label.open_issues_count, 'open issue'
- %span.issues-count= pluralize label.closed_issues_count, 'closed issue'
+ %span.issues-count= pluralize label.open_issues_count, 'open issue'
+ %span.issues-count= pluralize label.closed_issues_count, 'closed issue'