2015-04-30 15:10:42 -04:00
|
|
|
- page_title @group_milestone.title, "Milestones"
|
2014-12-27 09:03:02 -05:00
|
|
|
%h4.page-title
|
|
|
|
.issue-box{ class: "issue-box-#{@group_milestone.closed? ? 'closed' : 'open'}" }
|
|
|
|
- if @group_milestone.closed?
|
|
|
|
Closed
|
|
|
|
- else
|
|
|
|
Open
|
2014-06-27 04:14:57 -04:00
|
|
|
Milestone #{@group_milestone.title}
|
|
|
|
.pull-right
|
2015-04-10 08:39:10 -04:00
|
|
|
- if can?(current_user, :admin_group, @group)
|
2014-06-30 05:38:03 -04:00
|
|
|
- if @group_milestone.active?
|
2015-03-14 03:29:32 -04:00
|
|
|
= link_to 'Close Milestone', group_milestone_path(@group, @group_milestone.safe_title, title: @group_milestone.title, milestone: {state_event: :close }), method: :put, class: "btn btn-sm btn-close"
|
2014-06-30 05:38:03 -04:00
|
|
|
- else
|
2015-03-14 03:29:32 -04:00
|
|
|
= link_to 'Reopen Milestone', group_milestone_path(@group, @group_milestone.safe_title, title: @group_milestone.title, milestone: {state_event: :activate }), method: :put, class: "btn btn-sm btn-grouped btn-reopen"
|
2014-06-27 04:14:57 -04:00
|
|
|
|
2014-12-27 09:03:02 -05:00
|
|
|
%hr
|
2014-06-27 04:14:57 -04:00
|
|
|
- if (@group_milestone.total_items_count == @group_milestone.closed_items_count) && @group_milestone.active?
|
|
|
|
.alert.alert-success
|
|
|
|
%span All issues for this milestone are closed. You may close the milestone now.
|
|
|
|
|
2014-12-27 09:03:02 -05:00
|
|
|
.description
|
|
|
|
%table.table
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Project
|
|
|
|
%th Open issues
|
|
|
|
%th State
|
|
|
|
%th Due date
|
|
|
|
- @group_milestone.milestones.each do |milestone|
|
|
|
|
%tr
|
|
|
|
%td
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to "#{milestone.project.name}", namespace_project_milestone_path(milestone.project.namespace, milestone.project, milestone)
|
2014-12-27 09:03:02 -05:00
|
|
|
%td
|
|
|
|
= milestone.issues.opened.count
|
|
|
|
%td
|
2014-07-15 05:59:37 -04:00
|
|
|
- if milestone.closed?
|
2014-12-27 09:03:02 -05:00
|
|
|
Closed
|
|
|
|
- else
|
|
|
|
Open
|
|
|
|
%td
|
|
|
|
= milestone.expires_at
|
|
|
|
|
|
|
|
.context
|
|
|
|
%p.lead
|
|
|
|
Progress:
|
|
|
|
#{@group_milestone.closed_items_count} closed
|
|
|
|
–
|
|
|
|
#{@group_milestone.open_items_count} open
|
2015-03-09 18:20:32 -04:00
|
|
|
= milestone_progress_bar(@group_milestone)
|
2014-06-27 04:14:57 -04:00
|
|
|
|
|
|
|
%ul.nav.nav-tabs
|
|
|
|
%li.active
|
|
|
|
= link_to '#tab-issues', 'data-toggle' => 'tab' do
|
|
|
|
Issues
|
|
|
|
%span.badge= @group_milestone.issue_count
|
|
|
|
%li
|
|
|
|
= link_to '#tab-merge-requests', 'data-toggle' => 'tab' do
|
|
|
|
Merge Requests
|
|
|
|
%span.badge= @group_milestone.merge_requests_count
|
|
|
|
%li
|
|
|
|
= link_to '#tab-participants', 'data-toggle' => 'tab' do
|
|
|
|
Participants
|
|
|
|
%span.badge= @group_milestone.participants.count
|
|
|
|
|
2015-05-25 08:17:17 -04:00
|
|
|
.pull-right
|
|
|
|
= link_to 'Browse Issues', issues_group_path(@group, milestone_title: @group_milestone.title), class: "btn edit-milestone-link btn-grouped"
|
|
|
|
|
2014-06-27 04:14:57 -04:00
|
|
|
.tab-content
|
|
|
|
.tab-pane.active#tab-issues
|
|
|
|
.row
|
2014-06-30 04:54:57 -04:00
|
|
|
.col-md-6
|
2014-06-30 06:41:27 -04:00
|
|
|
= render 'issues', title: "Open", issues: @group_milestone.opened_issues
|
2014-06-30 04:54:57 -04:00
|
|
|
.col-md-6
|
2014-06-30 06:41:27 -04:00
|
|
|
= render 'issues', title: "Closed", issues: @group_milestone.closed_issues
|
2014-06-27 04:14:57 -04:00
|
|
|
|
|
|
|
.tab-pane#tab-merge-requests
|
|
|
|
.row
|
2014-06-30 04:54:57 -04:00
|
|
|
.col-md-6
|
2014-06-30 06:41:27 -04:00
|
|
|
= render 'merge_requests', title: "Open", merge_requests: @group_milestone.opened_merge_requests
|
2014-06-30 04:54:57 -04:00
|
|
|
.col-md-6
|
2014-06-30 06:41:27 -04:00
|
|
|
= render 'merge_requests', title: "Closed", merge_requests: @group_milestone.closed_merge_requests
|
2014-06-27 04:14:57 -04:00
|
|
|
|
|
|
|
.tab-pane#tab-participants
|
|
|
|
%ul.bordered-list
|
|
|
|
- @group_milestone.participants.each do |user|
|
|
|
|
%li
|
|
|
|
= link_to user, title: user.name, class: "darken" do
|
|
|
|
= image_tag avatar_icon(user.email, 32), class: "avatar s32"
|
|
|
|
%strong= truncate(user.name, lenght: 40)
|
|
|
|
%br
|
|
|
|
%small.cgray= user.username
|