* Finish task #36892.

This commit is contained in:
Yagami
2021-03-23 10:12:33 +08:00
parent dc920be091
commit 822a06ae56
8 changed files with 9 additions and 9 deletions
+5 -2
View File
@@ -23,10 +23,13 @@ class caselibModel extends model
*/
public function setLibMenu($libraries, $libID, $moduleID = 0)
{
/* Set case lib menu. */
$this->loadModel('qa')->setMenu($this->loadModel('product')->getPairs(), $this->session->product);
$currentLibName = zget($libraries, $libID, '');
$isMobile = $this->app->viewType == 'mhtml';
$selectHtml = '';
$isMobile = $this->app->viewType == 'mhtml';
$selectHtml = '';
if(!empty($libraries))
{
if($isMobile)
+2 -1
View File
@@ -1,2 +1,3 @@
<?php
$config->qa->menuList = array('caselib', 'testreport', 'testsuite', 'testtask', 'testcase', 'bug', 'qa', 'automation');
$config->qa->menuList = array('caselib', 'testreport', 'testsuite', 'testtask', 'testcase', 'bug', 'qa', 'automation');
$config->qa->noDropMenuModule = array('qa', 'caselib', 'automation');
-1
View File
@@ -9,5 +9,4 @@
* @version $Id: en.php 4129 2013-01-18 01:58:14Z wwccss $
* @link http://www.zentao.net
*/
$lang->qa->common = 'QS';
$lang->qa->index = 'QS Home';
-1
View File
@@ -9,5 +9,4 @@
* @version $Id: en.php 4129 2013-01-18 01:58:14Z wwccss $
* @link http://www.zentao.net
*/
$lang->qa->common = 'QA';
$lang->qa->index = 'QA Home';
-1
View File
@@ -9,5 +9,4 @@
* @version $Id: en.php 4129 2013-01-18 01:58:14Z wwccss $
* @link https://www.zentao.pm
*/
$lang->qa->common = 'QA';
$lang->qa->index = 'Accueil Qualité';
-1
View File
@@ -9,5 +9,4 @@
* @version $Id: vi.php 4129 2013-01-18 01:58:14Z wwccss $
* @link http://www.zentao.net
*/
$lang->qa->common = 'QA';
$lang->qa->index = 'Trang QA';
-1
View File
@@ -9,5 +9,4 @@
* @version $Id: zh-cn.php 4129 2013-01-18 01:58:14Z wwccss $
* @link http://www.zentao.net
*/
$lang->qa->common = '测试视图';
$lang->qa->index = '测试主页';
+2 -1
View File
@@ -38,7 +38,8 @@ class qaModel extends model
$productIndex .= $selectHtml;
}
if($this->app->rawModule != 'qa') $this->lang->switcherMenu = $this->product->getSwitcher($productID, $extra, $branch);
$this->lang->switcherMenu = "<div class='btn-group header-btn'>" . html::a(helper::createLink('qa', 'index'), "<i class='icon icon-test'></i> {$this->lang->qa->common}", '', "class='btn'") . '</div>';
if(!in_array($this->app->rawModule, $this->config->qa->noDropMenuModule)) $this->lang->switcherMenu .= $this->product->getSwitcher($productID, $extra, $branch);
common::setMenuVars('qa', $productID);
}