2015-11-26 14:37:03 +05:30
|
|
|
- page_title @milestone.title, "Milestones"
|
2015-12-23 02:04:40 +05:30
|
|
|
- header_title "Milestones", dashboard_milestones_path
|
|
|
|
|
|
|
|
.detail-page-header
|
|
|
|
.status-box{ class: "status-box-#{@milestone.closed? ? 'closed' : 'open'}" }
|
2015-11-26 14:37:03 +05:30
|
|
|
- if @milestone.closed?
|
2015-04-26 12:48:37 +05:30
|
|
|
Closed
|
|
|
|
- else
|
|
|
|
Open
|
2015-12-23 02:04:40 +05:30
|
|
|
%span.identifier
|
|
|
|
Milestone #{@milestone.title}
|
|
|
|
|
|
|
|
.detail-page-description.gray-content-block.second-block
|
|
|
|
%h2.title
|
|
|
|
= markdown escape_once(@milestone.title), pipeline: :single_line
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
- if @milestone.complete? && @milestone.active?
|
2015-12-23 02:04:40 +05:30
|
|
|
.alert.alert-success.prepend-top-default
|
2016-01-14 18:37:52 +05:30
|
|
|
%span All issues for this milestone are closed. Navigate to the project to close the milestone.
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
.table-holder
|
|
|
|
%table.table
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Project
|
|
|
|
%th Open issues
|
|
|
|
%th State
|
|
|
|
%th Due date
|
|
|
|
- @milestone.milestones.each do |milestone|
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= link_to "#{milestone.project.name_with_namespace}", namespace_project_milestone_path(milestone.project.namespace, milestone.project, milestone)
|
|
|
|
%td
|
|
|
|
= milestone.issues.opened.count
|
|
|
|
%td
|
|
|
|
- if milestone.closed?
|
|
|
|
Closed
|
|
|
|
- else
|
|
|
|
Open
|
|
|
|
%td
|
|
|
|
= milestone.expires_at
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
.context
|
|
|
|
%p.lead
|
|
|
|
Progress:
|
2015-11-26 14:37:03 +05:30
|
|
|
#{@milestone.closed_items_count} closed
|
2015-04-26 12:48:37 +05:30
|
|
|
–
|
2015-11-26 14:37:03 +05:30
|
|
|
#{@milestone.open_items_count} open
|
|
|
|
= milestone_progress_bar(@milestone)
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-01-19 16:12:03 +05:30
|
|
|
%ul.nav-links.no-top.no-bottom
|
2015-04-26 12:48:37 +05:30
|
|
|
%li.active
|
|
|
|
= link_to '#tab-issues', 'data-toggle' => 'tab' do
|
|
|
|
Issues
|
2015-11-26 14:37:03 +05:30
|
|
|
%span.badge= @milestone.issue_count
|
2015-04-26 12:48:37 +05:30
|
|
|
%li
|
|
|
|
= link_to '#tab-merge-requests', 'data-toggle' => 'tab' do
|
|
|
|
Merge Requests
|
2015-11-26 14:37:03 +05:30
|
|
|
%span.badge= @milestone.merge_requests_count
|
2015-04-26 12:48:37 +05:30
|
|
|
%li
|
|
|
|
= link_to '#tab-participants', 'data-toggle' => 'tab' do
|
|
|
|
Participants
|
2015-11-26 14:37:03 +05:30
|
|
|
%span.badge= @milestone.participants.count
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
.tab-content
|
|
|
|
.tab-pane.active#tab-issues
|
2015-12-23 02:04:40 +05:30
|
|
|
.gray-content-block.middle-block
|
|
|
|
.pull-right
|
|
|
|
= link_to 'Browse Issues', issues_dashboard_path(milestone_title: @milestone.title), class: "btn btn-grouped"
|
|
|
|
|
|
|
|
.oneline
|
|
|
|
All issues in this milestone
|
|
|
|
|
|
|
|
.row.prepend-top-default
|
2015-04-26 12:48:37 +05:30
|
|
|
.col-md-6
|
2015-11-26 14:37:03 +05:30
|
|
|
= render 'issues', title: "Open", issues: @milestone.opened_issues
|
2015-04-26 12:48:37 +05:30
|
|
|
.col-md-6
|
2015-11-26 14:37:03 +05:30
|
|
|
= render 'issues', title: "Closed", issues: @milestone.closed_issues
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
.tab-pane#tab-merge-requests
|
2015-12-23 02:04:40 +05:30
|
|
|
.gray-content-block.middle-block
|
|
|
|
.pull-right
|
|
|
|
= link_to 'Browse Merge Requests', merge_requests_dashboard_path(milestone_title: @milestone.title), class: "btn btn-grouped"
|
|
|
|
|
|
|
|
.oneline
|
|
|
|
All merge requests in this milestone
|
|
|
|
|
|
|
|
.row.prepend-top-default
|
2015-04-26 12:48:37 +05:30
|
|
|
.col-md-6
|
2015-11-26 14:37:03 +05:30
|
|
|
= render 'merge_requests', title: "Open", merge_requests: @milestone.opened_merge_requests
|
2015-04-26 12:48:37 +05:30
|
|
|
.col-md-6
|
2015-11-26 14:37:03 +05:30
|
|
|
= render 'merge_requests', title: "Closed", merge_requests: @milestone.closed_merge_requests
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
.tab-pane#tab-participants
|
2015-12-23 02:04:40 +05:30
|
|
|
.gray-content-block.middle-block
|
|
|
|
.oneline
|
|
|
|
All participants to this milestone
|
2015-04-26 12:48:37 +05:30
|
|
|
%ul.bordered-list
|
2015-11-26 14:37:03 +05:30
|
|
|
- @milestone.participants.each do |user|
|
2015-04-26 12:48:37 +05:30
|
|
|
%li
|
|
|
|
= link_to user, title: user.name, class: "darken" do
|
2015-10-24 18:46:33 +05:30
|
|
|
= image_tag avatar_icon(user, 32), class: "avatar s32"
|
2015-04-26 12:48:37 +05:30
|
|
|
%strong= truncate(user.name, lenght: 40)
|
|
|
|
%br
|
|
|
|
%small.cgray= user.username
|