gitlabhq/app/views/milestones/_milestone.html.haml

23 lines
896 B
Plaintext
Raw Normal View History

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.count > 0
= link_to 'Browse Issues', project_issues_path(milestone.project, :milestone_id => milestone.id), :class => "btn small"
- if milestone.issues.any?
%span.btn.small.disabled.padded= pluralize milestone.issues.count, 'issues'
- if can? current_user, :admin_milestone, milestone.project
= link_to 'Edit', edit_project_milestone_path(milestone.project, milestone), :class => "btn small edit-milestone-link"
= link_to project_milestone_path(milestone.project, milestone) do
%h4.row_title
= truncate(milestone.title, :length => 100)
%small= milestone.expires_at
2012-04-10 19:06:17 +02:00
%br
.progress.span3
2012-04-08 23:28:58 +02:00
2012-04-10 19:06:17 +02:00
 
2012-04-08 23:28:58 +02:00
:javascript
$(function() {
$( "##{dom_id(milestone)} .progress" ).progressbar({
value: #{milestone.percent_complete}
});
});