* Modify home btn title.

This commit is contained in:
caoyanyi
2023-02-23 17:20:17 +08:00
parent 455fa1d618
commit 1be6a534a8
3 changed files with 9 additions and 5 deletions

View File

@@ -912,9 +912,10 @@ class commonModel extends model
if($tab == 'product') $currentMethod = 'all';
}
$link = helper::createLink($currentModule, $currentMethod);
$link = helper::createLink($currentModule, $currentMethod);
$className = $tab == 'devops' ? 'btn num' : 'btn';
$html = $link ? html::a($link, "$icon {$lang->$tab->common}", '', "class='$className' style='padding-top: 2px'") : "$icon {$lang->$tab->common}";
$btnTitle = isset($lang->db->custom['common']['mainNav'][$tab]) ? $lang->db->custom['common']['mainNav'][$tab] : $lang->$tab->common;
$html = $link ? html::a($link, "$icon $btnTitle", '', "class='$className' style='padding-top: 2px'") : "$icon $btnTitle";
echo "<div class='btn-group header-btn'>" . $html . '</div>';
}

View File

@@ -248,7 +248,7 @@ if(!helper::hasFeature('waterfall')) $config->disableFeature = array('design', '
$config->dev->disableMainMenu = array('project', 'product', 'execution');
$config->dev->projectMenus = array('project', 'scrum', 'waterfall', 'kanbanProject');
$config->dev->hideMainMenu = array('admin');
$config->dev->hideMainMenu = array('admin', 'kanban');
if($config->vision == 'lite')
{
$config->dev->projectMenus = array('project', 'kanbanProject');

View File

@@ -118,8 +118,11 @@ class dev extends control
$moduleName = $module . 'SubMenu';
}
if($type == 'tag' and empty($module)) $module = 'my';
if($type == 'tag' and empty($method)) $method = 'todo';
if($type == 'tag')
{
if(empty($module)) $module = 'my';
if(empty($method)) $method = 'todo';
}
if($this->server->request_method == 'POST')
{