index.html.haml 1.59 KB
Newer Older
Douwe Maan's avatar
Douwe Maan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
%h3.page-title
  Milestones
  %span.pull-right #{@dashboard_milestones.count} milestones

%p.light
  List all milestones from all projects you have access to.

%hr

= render 'shared/milestones_filter'
.milestones
  .panel.panel-default
    %ul.well-list
      - if @dashboard_milestones.blank?
        %li
          .nothing-here-block No milestones to show
      - else
        - @dashboard_milestones.each do |milestone|
          %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)
            %div
              %div
                = link_to dashboard_milestone_path(milestone.safe_title, title: milestone.title) do
                  = pluralize milestone.issue_count, 'Issue'
                 
                = link_to dashboard_milestone_path(milestone.safe_title, title: milestone.title) do
                  = pluralize milestone.merge_requests_count, 'Merge Request'
                 
                %span.light #{milestone.percent_complete}% complete
31
              = milestone_progress_bar(milestone)
Douwe Maan's avatar
Douwe Maan committed
32 33 34 35 36 37 38
              %div
                %br
                - milestone.milestones.each do |milestone|
                  = link_to namespace_project_milestone_path(milestone.project.namespace, milestone.project, milestone) do
                    %span.label.label-default
                      = milestone.project.name_with_namespace
  = paginate @dashboard_milestones, theme: "gitlab"