From 9e0c6beef9ddf62b6ebbd4c62f08273e47a2cd54 Mon Sep 17 00:00:00 2001 From: zenggang Date: Wed, 30 Aug 2023 08:06:20 +0000 Subject: [PATCH] * Fix bug#37880 --- module/instance/ui/view.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/instance/ui/view.html.php b/module/instance/ui/view.html.php index 23d43e4a50..278d7c2da0 100644 --- a/module/instance/ui/view.html.php +++ b/module/instance/ui/view.html.php @@ -165,7 +165,7 @@ div !empty($defaultAccount->username) ? h::th($lang->instance->defaultAccount) : null, !empty($defaultAccount->password) ? h::th($lang->instance->defaultPassword) : null, !empty($defaultAccount->token) ? h::th($lang->instance->token) : null, - $type === 'store' ? null : h::th($lang->instance->browseProject), + $type === 'store' || (!empty($instance->type) && $instance->type != 'gitlab') ? null : h::th($lang->instance->browseProject), ), h::tr ( @@ -195,7 +195,7 @@ div input(set::type('text'), set::value($defaultAccount->token), set::name('token'), setStyle('display', 'none')), btn(set::className('copy-btn ghost'),set::icon('copy')) ): null, - $type === 'store' ? null : h::td + $type === 'store' || (!empty($instance->type) && $instance->type != 'gitlab') ? null : h::td ( btn (