debian-mirror-gitlab/app/views/shared/milestones/_top.html.haml

41 lines
1.4 KiB
Text
Raw Normal View History

2018-10-15 14:42:47 +05:30
- page_title milestone.title
2018-05-09 12:01:36 +05:30
- @breadcrumb_link = dashboard_milestone_path(milestone.safe_title, title: milestone.title)
2016-06-02 11:05:42 +05:30
- group = local_assigns[:group]
2018-10-15 14:42:47 +05:30
- is_dynamic_milestone = milestone.legacy_group_milestone? || milestone.dashboard_milestone?
2016-06-02 11:05:42 +05:30
2019-12-26 22:10:19 +05:30
= render 'shared/milestones/header', milestone: milestone
2018-10-15 14:42:47 +05:30
= render 'shared/milestones/deprecation_message' if is_dynamic_milestone
2019-12-26 22:10:19 +05:30
= render 'shared/milestones/description', milestone: milestone
2016-06-02 11:05:42 +05:30
2020-04-08 14:13:33 +05:30
- if milestone.complete? && milestone.active?
2016-06-02 11:05:42 +05:30
.alert.alert-success.prepend-top-default
2019-12-26 22:10:19 +05:30
%span
= _('All issues for this milestone are closed.')
= group ? _('You may close the milestone now.') : _('Navigate to the project to close the milestone.')
2016-06-02 11:05:42 +05:30
2019-10-12 21:52:04 +05:30
= render_if_exists 'shared/milestones/burndown', milestone: milestone, project: @project
2018-11-08 19:23:39 +05:30
2018-10-15 14:42:47 +05:30
- if is_dynamic_milestone
2017-09-10 17:25:29 +05:30
.table-holder
%table.table
%thead
%tr
2020-05-24 23:13:21 +05:30
%th= _('Project')
%th= _('Open issues')
%th= _('State')
%th= _('Due date')
2017-09-10 17:25:29 +05:30
%tr
%td
2019-02-15 15:39:39 +05:30
- project_name = group ? milestone.project.name : milestone.project.full_name
= link_to project_name, milestone_path(milestone.milestone)
2017-09-10 17:25:29 +05:30
%td
2019-02-15 15:39:39 +05:30
= milestone.milestone.issues_visible_to_user(current_user).opened.count
2017-09-10 17:25:29 +05:30
%td
2019-02-15 15:39:39 +05:30
- if milestone.closed?
2020-05-24 23:13:21 +05:30
= _('Closed')
2017-09-10 17:25:29 +05:30
- else
2020-05-24 23:13:21 +05:30
= _('Open')
2017-09-10 17:25:29 +05:30
%td
2019-02-15 15:39:39 +05:30
= milestone.expires_at