19 lines
972 B
Text
19 lines
972 B
Text
- add_to_breadcrumbs _('Milestones'), project_milestones_path(@project)
|
|
- breadcrumb_title @milestone.title
|
|
- page_title @milestone.title, _('Milestones')
|
|
- page_description @milestone.description
|
|
|
|
= 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(current_user).zero?
|
|
.alert.alert-success.prepend-top-default
|
|
%span= _('Assign some issues to this milestone.')
|
|
- elsif @milestone.complete?(current_user) && @milestone.active?
|
|
.alert.alert-success.prepend-top-default
|
|
%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
|