2012-12-14 06:34:05 +01:00
|
|
|
.row
|
|
|
|
.span6
|
|
|
|
%h3.page_title
|
|
|
|
Milestone ##{@milestone.id}
|
|
|
|
%small
|
|
|
|
= @milestone.expires_at
|
|
|
|
.back_link
|
|
|
|
= link_to project_milestones_path(@project) do
|
|
|
|
← To milestones list
|
|
|
|
.span6
|
|
|
|
.right
|
|
|
|
- unless @milestone.closed
|
|
|
|
= link_to new_project_issue_path(@project, issue: { milestone_id: @milestone.id }), class: "btn small grouped", title: "New Issue" do
|
|
|
|
%i.icon-plus
|
|
|
|
New Issue
|
|
|
|
= link_to 'Browse Issues', project_issues_path(@milestone.project, milestone_id: @milestone.id), class: "btn edit-milestone-link small grouped"
|
|
|
|
- if can?(current_user, :admin_milestone, @project)
|
|
|
|
= link_to edit_project_milestone_path(@project, @milestone), class: "btn small grouped" do
|
|
|
|
%i.icon-edit
|
|
|
|
Edit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- if @milestone.can_be_closed?
|
|
|
|
%hr
|
|
|
|
%p
|
|
|
|
%span All issues for this milestone are closed. You may close milestone now.
|
|
|
|
= link_to 'Close Milestone', project_milestone_path(@project, @milestone, milestone: {closed: true }), method: :put, class: "btn small danger"
|
2012-04-08 23:28:58 +02:00
|
|
|
|
2013-01-04 22:35:31 +01:00
|
|
|
.ui-box.ui-box-show
|
|
|
|
.ui-box-head
|
2012-12-14 06:34:05 +01:00
|
|
|
%h4.box-title
|
2012-04-08 23:28:58 +02:00
|
|
|
- if @milestone.closed
|
2012-12-14 06:34:05 +01:00
|
|
|
.error.status_info Closed
|
|
|
|
- elsif @milestone.expired?
|
|
|
|
.error.status_info Expired
|
|
|
|
|
2012-09-20 02:21:12 +02:00
|
|
|
= gfm escape_once(@milestone.title)
|
2012-04-08 23:28:58 +02:00
|
|
|
|
2013-01-04 22:35:31 +01:00
|
|
|
.ui-box-body
|
2012-05-24 08:23:25 +02:00
|
|
|
%h5
|
|
|
|
Progress:
|
|
|
|
%small
|
2012-10-29 22:45:11 +01:00
|
|
|
#{@milestone.closed_items_count} closed
|
2012-10-05 17:48:52 +02:00
|
|
|
–
|
2012-10-29 22:45:11 +01:00
|
|
|
#{@milestone.open_items_count} open
|
2012-12-14 06:34:05 +01:00
|
|
|
%span.right= @milestone.expires_at
|
2012-10-29 22:45:11 +01:00
|
|
|
.progress.progress-info
|
2012-08-11 00:07:50 +02:00
|
|
|
.bar{style: "width: #{@milestone.percent_complete}%;"}
|
2012-05-31 23:10:52 +02:00
|
|
|
|
2012-04-08 23:28:58 +02:00
|
|
|
|
|
|
|
- if @milestone.description.present?
|
|
|
|
.bottom_box_content
|
2012-04-11 21:36:52 +02:00
|
|
|
= preserve do
|
|
|
|
= markdown @milestone.description
|
2012-04-08 23:28:58 +02:00
|
|
|
|
2012-12-14 06:34:05 +01:00
|
|
|
|
2012-04-24 20:49:34 +02:00
|
|
|
.row
|
|
|
|
.span6
|
2012-09-04 10:13:56 +02:00
|
|
|
%table.milestone-issue-filter
|
2012-05-24 08:23:25 +02:00
|
|
|
%thead
|
2012-12-11 02:39:05 +01:00
|
|
|
%tr
|
|
|
|
%th
|
|
|
|
%ul.nav.nav-pills
|
|
|
|
%li.active= link_to('Open Issues', '#')
|
|
|
|
%li=link_to('All Issues', '#')
|
2012-05-24 08:23:25 +02:00
|
|
|
- @issues.each do |issue|
|
2012-10-10 19:06:34 +02:00
|
|
|
%tr{data: {closed: issue.closed}}
|
|
|
|
%td
|
2012-06-04 00:37:27 +02:00
|
|
|
= link_to [@project, issue] do
|
2012-05-24 08:23:25 +02:00
|
|
|
%span.badge.badge-info ##{issue.id}
|
2012-07-22 14:33:03 +02:00
|
|
|
–
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to_gfm truncate(issue.title, length: 60), [@project, issue]
|
2012-04-24 20:49:34 +02:00
|
|
|
|
2012-10-26 15:53:45 +02:00
|
|
|
.span6
|
2012-10-29 22:45:11 +01:00
|
|
|
%table.milestone-merge-requests-filter
|
2012-10-26 15:53:45 +02:00
|
|
|
%thead
|
2012-12-11 02:39:05 +01:00
|
|
|
%tr
|
|
|
|
%th
|
|
|
|
%ul.nav.nav-pills
|
|
|
|
%li.active= link_to('Open Merge Requests', '#')
|
|
|
|
%li=link_to('All Merge Requests', '#')
|
2012-10-26 15:53:45 +02:00
|
|
|
- @merge_requests.each do |merge_request|
|
|
|
|
%tr{data: {closed: merge_request.closed}}
|
|
|
|
%td
|
|
|
|
= link_to [@project, merge_request] do
|
|
|
|
%span.badge.badge-info ##{merge_request.id}
|
|
|
|
–
|
|
|
|
= link_to_gfm truncate(merge_request.title, length: 60), [@project, merge_request]
|
|
|
|
|
2012-10-29 22:45:11 +01:00
|
|
|
%hr
|
|
|
|
%h6 Participants:
|
|
|
|
%div
|
|
|
|
- @users.each do |user|
|
|
|
|
= link_to tm_path(user.tm_of(@project)), class: 'float-link' do
|
|
|
|
= user.avatar_image
|
|
|
|
= user.name
|
|
|
|
|
|
|
|
.clearfix
|