debian-mirror-gitlab/app/views/dashboard/milestones/_milestone.html.haml

21 lines
870 B
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
%li{class: "milestone milestone-#{milestone.closed? ? 'closed' : 'open'}", id: dom_id(milestone.milestones.first) }
%h4
= link_to_gfm truncate(milestone.title, length: 100), dashboard_milestone_path(milestone.safe_title, title: milestone.title)
.row
.col-sm-6
2015-09-11 14:41:01 +05:30
= link_to issues_dashboard_path(milestone_title: milestone.title) do
2015-04-26 12:48:37 +05:30
= pluralize milestone.issue_count, 'Issue'
 
2015-09-11 14:41:01 +05:30
= link_to merge_requests_dashboard_path(milestone_title: milestone.title) do
2015-04-26 12:48:37 +05:30
= pluralize milestone.merge_requests_count, 'Merge Request'
 
%span.light #{milestone.percent_complete}% complete
.col-sm-6
= milestone_progress_bar(milestone)
%div
- milestone.milestones.each do |milestone|
= link_to milestone_path(milestone) do
%span.label.label-gray
= milestone.project.name_with_namespace