From e0e6c686fb30db0fe5bf1191d427f87a76adfc07 Mon Sep 17 00:00:00 2001 From: Lufei Date: Mon, 27 May 2024 17:38:33 +0800 Subject: [PATCH] * add board icon. --- lib/zin/wg/header/v1.php | 1 + module/common/lang/common.php | 1 + module/common/model.php | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/zin/wg/header/v1.php b/lib/zin/wg/header/v1.php index 794672b26c..39cd26708d 100644 --- a/lib/zin/wg/header/v1.php +++ b/lib/zin/wg/header/v1.php @@ -276,6 +276,7 @@ class header extends wg if($config->edition == 'open') unset($lang->createIcons['effort']); if($config->systemMode == 'light') unset($lang->createIcons['program']); + if(empty($config->board)) unset($lang->createIcons['board']); /* Check whether the creation permission is available, and print create buttons. */ $items = array(); diff --git a/module/common/lang/common.php b/module/common/lang/common.php index 4f782e6e6f..af91bf1a4d 100644 --- a/module/common/lang/common.php +++ b/module/common/lang/common.php @@ -238,6 +238,7 @@ $lang->createIcons['story'] = 'lightbulb'; $lang->createIcons['task'] = 'check-sign'; $lang->createIcons['testcase'] = 'sitemap'; $lang->createIcons['doc'] = 'doc'; +$lang->createIcons['board'] = 'board'; $lang->createIcons['execution'] = 'run'; $lang->createIcons['project'] = 'project'; $lang->createIcons['product'] = 'product'; diff --git a/module/common/model.php b/module/common/model.php index 030d334b67..b3632219db 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -2880,6 +2880,7 @@ class commonModel extends model if($config->edition == 'open') unset($lang->createIcons['effort']); if($config->systemMode == 'light') unset($lang->createIcons['program']); + if(empty($config->board)) unset($lang->createIcons['board']); /* Check whether the creation permission is available, and print create buttons. */ foreach($lang->createIcons as $objectType => $objectIcon)