diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-08 09:12:26 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-08 09:12:26 +0000 |
commit | 3c050fb24b757425987a7df4cb3497e1d792be8e (patch) | |
tree | e4031413c679ecf3e3126da1d1a8cbc3084d8377 /app | |
parent | 14ac28d7c7fcf1aba321f521f3a980b03b7b090e (diff) | |
download | gitlab-ce-3c050fb24b757425987a7df4cb3497e1d792be8e.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
4 files changed, 17 insertions, 1 deletions
diff --git a/app/assets/javascripts/work_items/components/widget_wrapper.vue b/app/assets/javascripts/work_items/components/widget_wrapper.vue index 44c757f8f59..d76a66f561c 100644 --- a/app/assets/javascripts/work_items/components/widget_wrapper.vue +++ b/app/assets/javascripts/work_items/components/widget_wrapper.vue @@ -44,7 +44,7 @@ export default { <template> <div class="gl-rounded-base gl-border-1 gl-border-solid gl-border-gray-100 gl-bg-gray-10 gl-mt-4"> <div - class="gl-pl-5 gl-pr-4 gl-py-4 gl-display-flex gl-justify-content-space-between gl-bg-white" + class="gl-rounded-top-left-base gl-rounded-top-right-base gl-pl-5 gl-pr-4 gl-py-4 gl-display-flex gl-justify-content-space-between gl-bg-white" :class="{ 'gl-border-b-1 gl-border-b-solid gl-border-b-gray-100': isOpen }" > <div class="gl-display-flex gl-flex-grow-1"> diff --git a/app/views/projects/_self_monitoring_deprecation_notice.html.haml b/app/views/projects/_self_monitoring_deprecation_notice.html.haml new file mode 100644 index 00000000000..b9e32356688 --- /dev/null +++ b/app/views/projects/_self_monitoring_deprecation_notice.html.haml @@ -0,0 +1,13 @@ +- return unless project.self_monitoring? + += content_for :page_level_alert do + .flash-container.flash-container-page.sticky + %div{ class: [container_class, 'limit-container-width', 'gl-pt-5!'] } + = render Pajamas::AlertComponent.new(title: _('Deprecation notice'), + variant: :danger, + alert_options: { class: 'gl-mb-3 gl-sticky' }) do |c| + = c.body do + - deprecation_link = '<a href="%{url}">'.html_safe % { url: help_page_path('update/deprecations', anchor: 'gitlab-self-monitoring-project') } + - removal_link = '<a href="%{url}">'.html_safe % { url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/348909' } + - opstrace_link = '<a href="%{url}">'.html_safe % { url: 'https://gitlab.com/groups/gitlab-org/-/epics/6976' } + = _("Self-monitoring was %{deprecation}deprecated%{link_end} in GitLab 14.9, and is %{removal}scheduled for removal%{link_end} in GitLab 16.0. For information on a possible replacement, %{opstrace}learn more about Opstrace%{link_end}.").html_safe % { deprecation: deprecation_link, removal: removal_link, opstrace: opstrace_link, link_end: '</a>'.html_safe } diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml index 43159a759f4..ca3f49bae95 100644 --- a/app/views/projects/empty.html.haml +++ b/app/views/projects/empty.html.haml @@ -8,6 +8,7 @@ = render "home_panel" = render "archived_notice", project: @project += render "self_monitoring_deprecation_notice", project: @project = render "invite_members_empty_project" if can_admin_project_member?(@project) diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml index 5fa70c3af32..f47f4ebc7ee 100644 --- a/app/views/projects/show.html.haml +++ b/app/views/projects/show.html.haml @@ -9,6 +9,8 @@ = render_if_exists 'shared/ultimate_feature_removal_banner', project: @project = render partial: 'flash_messages', locals: { project: @project } += render "self_monitoring_deprecation_notice", project: @project + = render 'clusters_deprecation_alert' = render "projects/last_push" |