2012-08-11 00:07:50 +02:00
|
|
|
%li{class: "milestone", id: dom_id(milestone) }
|
2012-04-08 23:28:58 +02:00
|
|
|
.right
|
|
|
|
- if can? current_user, :admin_milestone, milestone.project
|
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-07-22 14:37:46 +02:00
|
|
|
%small
|
|
|
|
= milestone.expires_at
|
2012-10-29 21:40:00 +01:00
|
|
|
.row
|
2012-10-29 22:45:11 +01:00
|
|
|
.progress.progress-info.span4
|
2012-08-11 00:07:50 +02:00
|
|
|
.bar{style: "width: #{milestone.percent_complete}%;"}
|
2012-10-29 21:40:00 +01:00
|
|
|
.span6
|
|
|
|
- if milestone.issues.any?
|
2012-10-29 22:45:11 +01:00
|
|
|
= link_to project_issues_path(milestone.project, milestone_id: milestone.id), class: "btn very_small" do
|
2012-10-29 21:40:00 +01:00
|
|
|
%strong= pluralize milestone.issues.count, 'Issue'
|
2012-05-31 23:10:52 +02:00
|
|
|
|
2012-10-29 21:40:00 +01:00
|
|
|
- if milestone.merge_requests.any?
|
2012-10-29 22:45:11 +01:00
|
|
|
= link_to project_merge_requests_path(milestone.project, milestone_id: milestone.id), class: "btn very_small" do
|
2012-10-29 22:50:35 +01:00
|
|
|
%strong= pluralize milestone.merge_requests.count, 'Merge Request'
|