2012-09-26 15:49:20 +02:00
|
|
|
%h3.page_title
|
2012-04-08 23:28:58 +02:00
|
|
|
Milestone ##{@milestone.id}
|
|
|
|
%small
|
|
|
|
= @milestone.expires_at
|
|
|
|
|
|
|
|
%span.right
|
2012-09-26 15:49:20 +02:00
|
|
|
= 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
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to 'Browse Issues', project_issues_path(@milestone.project, milestone_id: @milestone.id), class: "btn edit-milestone-link small grouped"
|
2012-04-08 23:28:58 +02:00
|
|
|
- if can?(current_user, :admin_milestone, @project)
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to edit_project_milestone_path(@project, @milestone), class: "btn small grouped" do
|
2012-05-24 08:23:25 +02:00
|
|
|
%i.icon-edit
|
2012-04-08 23:28:58 +02:00
|
|
|
Edit
|
|
|
|
|
|
|
|
.back_link
|
2012-06-04 00:37:27 +02:00
|
|
|
= link_to project_milestones_path(@project) do
|
2012-04-08 23:28:58 +02:00
|
|
|
← To milestones list
|
|
|
|
|
|
|
|
.main_box
|
|
|
|
.top_box_content
|
|
|
|
%h5
|
|
|
|
- if @milestone.closed
|
|
|
|
.alert-message.error.status_info Closed
|
2012-06-04 00:37:27 +02:00
|
|
|
- else
|
2012-04-08 23:28:58 +02:00
|
|
|
.alert-message.success.status_info Open
|
2012-09-20 02:21:12 +02:00
|
|
|
= gfm escape_once(@milestone.title)
|
2012-05-24 08:23:25 +02:00
|
|
|
%small.right= @milestone.expires_at
|
2012-04-08 23:28:58 +02:00
|
|
|
|
|
|
|
.middle_box_content
|
2012-05-24 08:23:25 +02:00
|
|
|
%h5
|
|
|
|
Progress:
|
|
|
|
%small
|
|
|
|
#{@milestone.issues.closed.count} closed
|
2012-10-05 17:48:52 +02:00
|
|
|
–
|
|
|
|
#{@milestone.issues.opened.count} open
|
2012-05-31 23:10:52 +02:00
|
|
|
.progress.progress-success
|
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-04-24 20:49:34 +02:00
|
|
|
.row
|
|
|
|
.span6
|
2012-09-03 20:53:16 +02:00
|
|
|
%table
|
2012-05-24 08:23:25 +02:00
|
|
|
%thead
|
|
|
|
%th Open Issues
|
|
|
|
- @issues.each do |issue|
|
|
|
|
%tr
|
|
|
|
%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
|
|
|
%br
|
2012-08-11 00:07:50 +02:00
|
|
|
= paginate @issues, theme: "gitlab"
|
2012-04-24 20:49:34 +02:00
|
|
|
|
|
|
|
.span6
|
2012-09-03 20:53:16 +02:00
|
|
|
%table
|
2012-05-24 08:23:25 +02:00
|
|
|
%thead
|
|
|
|
%th Participants
|
|
|
|
- @users.each do |user|
|
|
|
|
%tr
|
|
|
|
%td
|
2012-08-11 00:07:50 +02:00
|
|
|
= image_tag gravatar_icon(user.email, 24), width: "24"
|
2012-05-24 08:23:25 +02:00
|
|
|
|
|
|
|
= user.name
|