_milestone.html.haml 1.02 KB
Newer Older
1
%li{class: "milestone milestone-#{milestone.closed? ? 'closed' : 'open'}", id: dom_id(milestone.milestones.first) }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
2 3 4 5 6 7
  .row
    .col-sm-6
      %strong
        = link_to_gfm truncate(milestone.title, length: 100), dashboard_milestone_path(milestone.safe_title, title: milestone.title)
    .col-sm-6
      .pull-right.light #{milestone.percent_complete}% complete
8 9
  .row
    .col-sm-6
10
      = link_to issues_dashboard_path(milestone_title: milestone.title) do
11
        = pluralize milestone.issue_count, 'Issue'
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
12
      ·
13
      = link_to merge_requests_dashboard_path(milestone_title: milestone.title) do
14 15 16
        = pluralize milestone.merge_requests_count, 'Merge Request'
    .col-sm-6
      = milestone_progress_bar(milestone)
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
17 18
  .row
    .col-sm-6
19 20 21 22 23 24 25
      .expiration
        = render 'shared/milestone_expired', milestone: milestone
      .projects
        - milestone.milestones.each do |milestone|
          = link_to milestone_path(milestone) do
            %span.label.label-gray
              = milestone.project.name_with_namespace