summaryrefslogtreecommitdiff
path: root/app/views/projects/milestones/show.html.haml
blob: 5a6c2c5faafe1d96748e7efdbb0994e3b41629ca (plain)
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
- add_to_breadcrumbs _('Milestones'), project_milestones_path(@project)
- breadcrumb_title @milestone.title
- page_title       @milestone.title, _('Milestones')
- page_description @milestone.description_html
- add_page_specific_style 'page_bundles/milestone'

- add_page_startup_api_call milestone_tab_path(@milestone, 'issues', show_project_name: false)

= render 'shared/milestones/header', milestone: @milestone
= render 'shared/milestones/description', milestone: @milestone

= render_if_exists 'shared/milestones/burndown', milestone: @milestone, project: @project

- if can?(current_user, :read_issue, @project) && @milestone.total_issues_count == 0
  .gl-alert.gl-alert-info.gl-mt-3.gl-mb-5{ data: { testid: 'no-issues-alert' } }
    = sprite_icon('information-o', size: 16, css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title')
    .gl-alert-body
      %span= _('Assign some issues to this milestone.')
- elsif @milestone.complete? && @milestone.active?
  .gl-alert.gl-alert-success.gl-mt-3.gl-mb-5{ data: { testid: 'all-issues-closed-alert' } }
    = sprite_icon('check-circle', size: 16, css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title')
    .gl-alert-body
      %span= _('All issues for this milestone are closed. You may close this milestone now.')

= render 'shared/milestones/tabs', milestone: @milestone
= render 'shared/milestones/sidebar', milestone: @milestone, project: @project, affix_offset: 153