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