2014-12-27 09:03:02 -05:00
|
|
|
%h4.page-title
|
2014-12-18 10:22:10 -05:00
|
|
|
.issue-box{ class: issue_box_class(@milestone) }
|
|
|
|
- if @milestone.closed?
|
|
|
|
Closed
|
|
|
|
- elsif @milestone.expired?
|
|
|
|
Expired
|
|
|
|
- else
|
|
|
|
Open
|
2013-10-19 03:08:54 -04:00
|
|
|
Milestone ##{@milestone.iid}
|
2014-12-27 09:03:02 -05:00
|
|
|
%small.creator
|
|
|
|
= @milestone.expires_at
|
|
|
|
.pull-right
|
|
|
|
- if can?(current_user, :admin_milestone, @project)
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to edit_namespace_project_milestone_path(@project.namespace, @project, @milestone), class: "btn btn-grouped" do
|
2014-12-27 09:03:02 -05:00
|
|
|
%i.fa.fa-pencil-square-o
|
|
|
|
Edit
|
|
|
|
- if @milestone.active?
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to 'Close Milestone', namespace_project_milestone_path(@project.namespace, @project, @milestone, milestone: {state_event: :close }), method: :put, class: "btn btn-close btn-grouped"
|
2014-12-27 09:03:02 -05:00
|
|
|
- else
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to 'Reopen Milestone', namespace_project_milestone_path(@project.namespace, @project, @milestone, milestone: {state_event: :activate }), method: :put, class: "btn btn-reopen btn-grouped"
|
2012-12-14 00:34:05 -05:00
|
|
|
|
2014-12-18 10:22:10 -05:00
|
|
|
%hr
|
2013-08-02 06:44:25 -04:00
|
|
|
- if @milestone.issues.any? && @milestone.can_be_closed?
|
|
|
|
.alert.alert-success
|
|
|
|
%span All issues for this milestone are closed. You may close milestone now.
|
2012-12-14 00:34:05 -05:00
|
|
|
|
2014-12-27 09:03:02 -05:00
|
|
|
%h3.issue-title
|
|
|
|
= gfm escape_once(@milestone.title)
|
|
|
|
%div
|
|
|
|
- if @milestone.description.present?
|
|
|
|
.description
|
|
|
|
.wiki
|
|
|
|
= preserve do
|
|
|
|
= markdown @milestone.description
|
2014-06-04 11:52:35 -04:00
|
|
|
|
2014-12-27 09:03:02 -05:00
|
|
|
%hr
|
|
|
|
.context
|
|
|
|
%p.lead
|
|
|
|
Progress:
|
|
|
|
#{@milestone.closed_items_count} closed
|
|
|
|
–
|
|
|
|
#{@milestone.open_items_count} open
|
|
|
|
|
|
|
|
%span.light #{@milestone.percent_complete}% complete
|
|
|
|
%span.pull-right= @milestone.expires_at
|
|
|
|
.progress.progress-info
|
|
|
|
.progress-bar{style: "width: #{@milestone.percent_complete}%;"}
|
2012-05-31 17:10:52 -04:00
|
|
|
|
2012-04-08 17:28:58 -04:00
|
|
|
|
2014-02-15 06:41:48 -05:00
|
|
|
%ul.nav.nav-tabs
|
2013-06-17 04:57:37 -04:00
|
|
|
%li.active
|
|
|
|
= link_to '#tab-issues', 'data-toggle' => 'tab' do
|
|
|
|
Issues
|
|
|
|
%span.badge= @issues.count
|
|
|
|
%li
|
|
|
|
= link_to '#tab-merge-requests', 'data-toggle' => 'tab' do
|
|
|
|
Merge Requests
|
|
|
|
%span.badge= @merge_requests.count
|
|
|
|
%li
|
|
|
|
= link_to '#tab-participants', 'data-toggle' => 'tab' do
|
|
|
|
Participants
|
|
|
|
%span.badge= @users.count
|
2012-04-24 14:49:34 -04:00
|
|
|
|
2013-08-02 06:44:25 -04:00
|
|
|
.pull-right
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to new_namespace_project_issue_path(@project.namespace, @project, issue: { milestone_id: @milestone.id }), class: "btn btn-grouped", title: "New Issue" do
|
2014-12-27 09:03:02 -05:00
|
|
|
%i.fa.fa-plus
|
|
|
|
New Issue
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to 'Browse Issues', namespace_project_issues_path(@milestone.project.namespace, @milestone.project, milestone_id: @milestone.id), class: "btn edit-milestone-link btn-grouped"
|
2012-10-26 09:53:45 -04:00
|
|
|
|
2013-06-17 04:57:37 -04:00
|
|
|
.tab-content
|
|
|
|
.tab-pane.active#tab-issues
|
|
|
|
.row
|
2014-06-05 02:29:24 -04:00
|
|
|
.col-md-4
|
|
|
|
= render('issues', title: 'Unstarted Issues (open and unassigned)', issues: @issues.opened.unassigned, id: 'unassigned')
|
|
|
|
.col-md-4
|
|
|
|
= render('issues', title: 'Ongoing Issues (open and assigned)', issues: @issues.opened.assigned, id: 'ongoing')
|
|
|
|
.col-md-4
|
2014-06-04 11:52:35 -04:00
|
|
|
= render('issues', title: 'Completed Issues (closed)', issues: @issues.closed, id: 'closed')
|
2013-06-10 13:24:49 -04:00
|
|
|
|
2013-06-17 04:57:37 -04:00
|
|
|
.tab-pane#tab-merge-requests
|
|
|
|
.row
|
2014-06-05 09:28:13 -04:00
|
|
|
.col-md-3
|
2014-06-05 06:01:49 -04:00
|
|
|
= render('merge_requests', title: 'Work in progress (open and unassigned)', merge_requests: @merge_requests.opened.unassigned, id: 'unassigned')
|
2014-06-05 09:28:13 -04:00
|
|
|
.col-md-3
|
|
|
|
= render('merge_requests', title: 'Waiting for merge (open and assigned)', merge_requests: @merge_requests.opened.assigned, id: 'ongoing')
|
|
|
|
.col-md-3
|
|
|
|
= render('merge_requests', title: 'Declined (closed)', merge_requests: @merge_requests.declined, id: 'closed')
|
|
|
|
.col-md-3
|
|
|
|
.panel.panel-primary
|
|
|
|
.panel-heading Merged
|
|
|
|
%ul.well-list
|
|
|
|
- @merge_requests.merged.each do |merge_request|
|
|
|
|
= render 'merge_request', merge_request: merge_request
|
2012-10-29 17:45:11 -04:00
|
|
|
|
2013-06-17 04:57:37 -04:00
|
|
|
.tab-pane#tab-participants
|
|
|
|
%ul.bordered-list
|
|
|
|
- @users.each do |user|
|
|
|
|
%li
|
2014-05-09 11:58:23 -04:00
|
|
|
= link_to user, title: user.name, class: "darken" do
|
2013-10-06 14:13:56 -04:00
|
|
|
= image_tag avatar_icon(user.email, 32), class: "avatar s32"
|
2013-06-17 04:57:37 -04:00
|
|
|
%strong= truncate(user.name, lenght: 40)
|
|
|
|
%br
|
|
|
|
%small.cgray= user.username
|