diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-01-27 20:38:03 +0300 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-02-03 01:45:42 +0300 |
commit | 7ecd30a840fb00f7a3831adba5349cb89ecfb104 (patch) | |
tree | 7a95fe8c6d8d7e1d0f6dd70cd344405b5a65f722 /app/views | |
parent | 2c31ebff889a0bee1ef6c56ff80a56deebc2d67b (diff) |
Align Milestone's issue counter.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/milestones/show.html.haml | 16 |
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' |