2012-08-10 18:07:50 -04:00
|
|
|
%li{class: "milestone", id: dom_id(milestone) }
|
2012-04-08 17:28:58 -04:00
|
|
|
.right
|
|
|
|
- if milestone.issues.any?
|
2012-07-05 02:35:23 -04:00
|
|
|
%span.btn.small.disabled.grouped= pluralize milestone.issues.count, 'issues'
|
|
|
|
- if milestone.issues.count > 0
|
2012-08-10 18:07:50 -04:00
|
|
|
= link_to 'Browse Issues', project_issues_path(milestone.project, milestone_id: milestone.id), class: "btn small grouped"
|
2012-04-08 17:28:58 -04:00
|
|
|
- if can? current_user, :admin_milestone, milestone.project
|
2012-08-10 18:07:50 -04:00
|
|
|
= link_to 'Edit', edit_project_milestone_path(milestone.project, milestone), class: "btn small edit-milestone-link grouped"
|
2012-07-22 08:37:46 -04:00
|
|
|
%h4
|
2012-08-10 18:07:50 -04:00
|
|
|
= link_to_gfm truncate(milestone.title, length: 100), project_milestone_path(milestone.project, milestone), class: "row_title"
|
2012-07-22 08:37:46 -04:00
|
|
|
%small
|
|
|
|
= milestone.expires_at
|
|
|
|
%br
|
|
|
|
.progress.progress-success.span3
|
2012-08-10 18:07:50 -04:00
|
|
|
.bar{style: "width: #{milestone.percent_complete}%;"}
|
2012-05-31 17:10:52 -04:00
|
|
|
|
2012-04-08 17:28:58 -04:00
|
|
|
|
2012-04-10 13:06:17 -04:00
|
|
|
|