Commit ec453235 authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Kushal Pandya

Update gl-alert markup

parent 336e847d
...@@ -12,19 +12,17 @@ ...@@ -12,19 +12,17 @@
= render_if_exists 'shared/milestones/burndown', milestone: @milestone, project: @project = render_if_exists 'shared/milestones/burndown', milestone: @milestone, project: @project
- if can?(current_user, :read_issue, @project) && @milestone.total_issues_count == 0 - 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' } } = render 'shared/global_alert',
.gl-alert-container variant: :info,
= sprite_icon('information-o', size: 16, css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title') dismissible: false,
.gl-alert-content is_contained: true,
.gl-alert-body alert_data: { testid: 'no-issues-alert' },
%span= _('Assign some issues to this milestone.') alert_class: 'gl-mt-3 gl-mb-5' do
- elsif @milestone.complete? && @milestone.active? .gl-alert-body
.gl-alert.gl-alert-success.gl-mt-3.gl-mb-5{ data: { testid: 'all-issues-closed-alert' } } = _('Assign some issues to this milestone.')
.gl-alert-container - else
= sprite_icon('check-circle', size: 16, css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title') = render 'shared/milestones/milestone_complete_alert', milestone: @milestone do
.gl-alert-content = _('All issues for this milestone are closed. You may close this milestone now.')
.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/tabs', milestone: @milestone
= render 'shared/milestones/sidebar', milestone: @milestone, project: @project, affix_offset: 153 = render 'shared/milestones/sidebar', milestone: @milestone, project: @project, affix_offset: 153
- milestone = local_assigns[:milestone]
- if milestone.complete? && milestone.active?
= render 'shared/global_alert',
variant: :success,
is_contained: true,
alert_data: { testid: 'all-issues-closed-alert' },
dismissible: false do
.gl-alert-body
= yield
...@@ -5,11 +5,8 @@ ...@@ -5,11 +5,8 @@
= render 'shared/milestones/header', milestone: milestone = render 'shared/milestones/header', milestone: milestone
= render 'shared/milestones/description', milestone: milestone = render 'shared/milestones/description', milestone: milestone
= render 'shared/milestones/milestone_complete_alert', milestone: milestone do
- if milestone.complete? && milestone.active? = _('All issues for this milestone are closed.')
.gl-alert.gl-alert-success.gl-mt-3 = group ? _('You may close the milestone now.') : _('Navigate to the project to close the milestone.')
%span
= _('All issues for this milestone are closed.')
= group ? _('You may close the milestone now.') : _('Navigate to the project to close the milestone.')
= render_if_exists 'shared/milestones/burndown', milestone: milestone, project: @project = render_if_exists 'shared/milestones/burndown', milestone: milestone, project: @project
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment