From b7e7e087f28bbca8441106e8b5678c74307d14c8 Mon Sep 17 00:00:00 2001 From: Julia Miocene Date: Mon, 4 Mar 2024 14:25:01 +0100 Subject: [PATCH] Update profile empty state Migrate incognito empty state to Pajamas component. Update illustrations. Changelog: changed --- app/views/users/show.html.haml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 767200d2a15d27..291f36b4a8f6e3 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -91,14 +91,12 @@ .gl-spinner.gl-spinner-md - if profile_tabs.empty? - .svg-content - = image_tag 'illustrations/profile_private_mode.svg' - .text-content.text-center - %h4 - - if @user.blocked? - = s_('UserProfile|This user is blocked') - - else - = s_('UserProfile|This user has a private profile') + - if @user.blocked? + = render Pajamas::EmptyStateComponent.new(svg_path: 'illustrations/empty-state/empty-access-md.svg', + title: s_('UserProfile|This user is blocked')) + - else + = render Pajamas::EmptyStateComponent.new(svg_path: 'illustrations/empty-state/empty-private-md.svg', + title: s_('UserProfile|This user has a private profile')) .user-profile-sidebar .profile-header.gl-pb-5.gl-pt-3.gl-overflow-y-auto.gl-sm-pr-4 .gl-vertical-align-top.gl-text-left.gl-max-w-80.gl-overflow-wrap-anywhere -- GitLab