2012-12-14 06:34:05 +01:00
|
|
|
%li{class: "milestone milestone-#{milestone.closed ? 'closed' : 'open'}", id: dom_id(milestone) }
|
2012-04-08 23:28:58 +02:00
|
|
|
.right
|
2012-12-14 06:34:05 +01:00
|
|
|
- if can?(current_user, :admin_milestone, milestone.project) and milestone.open?
|
2012-10-29 21:40:00 +01:00
|
|
|
= link_to edit_project_milestone_path(milestone.project, milestone), class: "btn small edit-milestone-link grouped" do
|
|
|
|
%i.icon-edit
|
|
|
|
Edit
|
2012-07-22 14:37:46 +02:00
|
|
|
%h4
|
2012-10-29 21:40:00 +01:00
|
|
|
= link_to_gfm truncate(milestone.title, length: 100), project_milestone_path(milestone.project, milestone)
|
2012-12-14 06:34:05 +01:00
|
|
|
- if milestone.expired? and not milestone.closed
|
|
|
|
%span.cred (Expired)
|
2012-07-22 14:37:46 +02:00
|
|
|
%small
|
|
|
|
= milestone.expires_at
|
2012-10-29 21:40:00 +01:00
|
|
|
.row
|
2012-10-30 09:03:21 +01:00
|
|
|
.span4
|
|
|
|
.progress.progress-info
|
|
|
|
.bar{style: "width: #{milestone.percent_complete}%;"}
|
2012-10-29 21:40:00 +01:00
|
|
|
.span6
|
2012-10-30 09:03:21 +01:00
|
|
|
= link_to project_issues_path(milestone.project, milestone_id: milestone.id) do
|
|
|
|
= pluralize milestone.issues.count, 'Issue'
|
2012-10-30 08:22:24 +01:00
|
|
|
|
2012-10-30 09:03:21 +01:00
|
|
|
= link_to project_merge_requests_path(milestone.project, milestone_id: milestone.id) do
|
|
|
|
= pluralize milestone.merge_requests.count, 'Merge Request'
|
|
|
|
|
|
|
|
%span.light #{milestone.percent_complete}% complete
|