* Finish task #36892.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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é';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user