BigW Consortium Gitlab

_milestone.html.haml 1.16 KB
Newer Older
1
%li{class: "milestone milestone-#{milestone.closed ? 'closed' : 'open'}", id: dom_id(milestone) }
2
  .pull-right
3
    - if can?(current_user, :admin_milestone, milestone.project) and milestone.open?
4
      = link_to edit_project_milestone_path(milestone.project, milestone), class: "btn btn-small edit-milestone-link grouped" do
5 6
        %i.icon-edit
        Edit
7
  %h4
8
    = link_to_gfm truncate(milestone.title, length: 100), project_milestone_path(milestone.project, milestone)
9 10
    - if milestone.expired? and not milestone.closed
      %span.cred (Expired)
11 12
    %small
      = milestone.expires_at
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
  - if milestone.is_empty?
    %span.muted Empty
  - else
    .row
      .span4
        .progress.progress-info
          .bar{style: "width: #{milestone.percent_complete}%;"}
      .span6
        = link_to project_issues_path(milestone.project, milestone_id: milestone.id) do
          = pluralize milestone.issues.count, 'Issue'
         
        = link_to project_merge_requests_path(milestone.project, milestone_id: milestone.id) do
          = pluralize milestone.merge_requests.count, 'Merge Request'
         
        %span.light #{milestone.percent_complete}% complete