Merge branch '15.0.beta3' of http://gitlab.zcorp.cc/easycorp/zentaopms into 15.0.beta3
This commit is contained in:
@@ -54,8 +54,8 @@
|
||||
$methodName = 'view';
|
||||
if($module == 'caselib')
|
||||
{
|
||||
$methodName = 'libview';
|
||||
$module = 'testsuite';
|
||||
$methodName = 'view';
|
||||
$module = 'caselib';
|
||||
}
|
||||
if(isset($config->action->customFlows[$action->objectType]))
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
?>
|
||||
<tr>
|
||||
<td class='c-id-xs'><?php echo sprintf('%03d', $bug->id);?></td>
|
||||
<td class='c-name' style='color: <?php echo $bug->color?>' title='<?php echo $bug->title?>'><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id", '', '', $bug->project), $bug->title)?></td>
|
||||
<td class='c-name' title='<?php echo $bug->title?>'><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id"), $bug->title, '', "style='color: $bug->color'")?></td>
|
||||
<?php if($longBlock):?>
|
||||
<td class='c-severity'>
|
||||
<?php if($hasCustomSeverity):?>
|
||||
|
||||
@@ -29,7 +29,9 @@ class caselibModel extends model
|
||||
|
||||
if($libraries)
|
||||
{
|
||||
$currentLibName = zget($libraries, $libID, '');
|
||||
$libName = '';
|
||||
if(!isset($libraries[$libID])) $libName = $this->dao->select('name')->from(TABLE_TESTSUITE)->where('id')->eq($libID)->fetch('name');
|
||||
$currentLibName = zget($libraries, $libID, $libName);
|
||||
setCookie("lastCaseLib", $libID, $this->config->cookieLife, $this->config->webRoot, '', false, true);
|
||||
|
||||
$dropMenuLink = helper::createLink('caselib', 'ajaxGetDropMenu', "objectID=$libID&module=caselib&method=browse");
|
||||
|
||||
@@ -2841,6 +2841,10 @@ class execution extends control
|
||||
$this->fetch('file', 'export2' . $this->post->fileType, $_POST);
|
||||
}
|
||||
|
||||
$this->loadModel('project');
|
||||
$project = $this->project->getByID($this->session->project);
|
||||
if($project->model == 'waterfall') $this->lang->executionCommon = $this->lang->project->stage;
|
||||
|
||||
$this->view->fileName = (in_array($status, array('all', 'undone')) ? $this->lang->execution->$status : $this->lang->execution->statusList[$status]) . $this->lang->executionCommon;
|
||||
|
||||
$this->display();
|
||||
|
||||
@@ -69,6 +69,14 @@ class executionModel extends model
|
||||
/* Unset story, bug, build and testtask if type is ops. */
|
||||
$execution = $this->getByID($executionID);
|
||||
|
||||
if($execution->type == 'stage')
|
||||
{
|
||||
global $lang;
|
||||
$this->loadModel('execution');
|
||||
$lang->executionCommon = $lang->project->stage;
|
||||
include $this->app->getModulePath('execution') . 'lang/' . $this->app->getClientLang() . '.php';
|
||||
}
|
||||
|
||||
if($execution and $execution->lifetime == 'ops')
|
||||
{
|
||||
unset($this->lang->execution->menu->story);
|
||||
|
||||
@@ -25,7 +25,7 @@ body.menu-hide {padding-left: 0;}
|
||||
.menu-hide #menu .nav > li.has-avatar > a {padding: 2px 0;}
|
||||
#menuMoreNav {display: none;}
|
||||
.show-more-nav #menuMoreNav {display: block;}
|
||||
#menuMoreList {left: 100%; margin-left: -2px; top: -5px; background-color: #3c495c;}
|
||||
#menuMoreList {left: 100%; margin-left: -2px; top: 0; background-color: #3c495c;}
|
||||
#menuMoreList > li {padding: 2px 6px;}
|
||||
#menuMoreList > li > a {color: #fff; padding: 4px 6px 4px 12px; border-radius: 2px; margin: 0;}
|
||||
#menuMoreList > li > a > .icon {opacity: 1; font-size: 16px;}
|
||||
|
||||
@@ -429,7 +429,7 @@
|
||||
var maxHeight = $menuNav.height();
|
||||
var showMoreMenu = false;
|
||||
var currentHeight = 40;
|
||||
var moreMenuHeight = 13;
|
||||
var moreMenuHeight = 12;
|
||||
|
||||
$menuItems.each(function()
|
||||
{
|
||||
@@ -450,7 +450,7 @@
|
||||
|
||||
if(isDivider) return;
|
||||
}
|
||||
moreMenuHeight += isDivider ? 13 : 31;
|
||||
moreMenuHeight += isDivider ? 13 : 30;
|
||||
$list.append($item.clone().removeClass('hidden'));
|
||||
}
|
||||
else
|
||||
@@ -461,7 +461,26 @@
|
||||
|
||||
/* The magic number "111" is the space between dropdown trigger
|
||||
btn and the bottom of screen */
|
||||
$list.css('top', moreMenuHeight > 111 ? 111 - moreMenuHeight : '');
|
||||
var listStyle = {maxHeight: 'initial', top: moreMenuHeight > 111 ? 111 - moreMenuHeight : ''};
|
||||
if($list[0].getBoundingClientRect)
|
||||
{
|
||||
var btnBounding = $list.prev('a')[0].getBoundingClientRect();
|
||||
if(btnBounding.height)
|
||||
{
|
||||
var winHeight = $(window).height();
|
||||
if(winHeight < moreMenuHeight)
|
||||
{
|
||||
listStyle.maxHeight = winHeight;
|
||||
listStyle.overflow = 'auto';
|
||||
listStyle.top = 5 - btnBounding.top;
|
||||
}
|
||||
else if(moreMenuHeight > (winHeight - btnBounding.top))
|
||||
{
|
||||
listStyle.top = winHeight - btnBounding.top - moreMenuHeight + 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
$list.css(listStyle);
|
||||
$menuNav.toggleClass('show-more-nav', showMoreMenu);
|
||||
|
||||
if(showMoreMenu && !$list.data('listened-click'))
|
||||
@@ -554,6 +573,7 @@
|
||||
/* Refresh more menu on window resize */
|
||||
$(window).on('resize', refreshMoreMenu);
|
||||
refreshMoreMenu();
|
||||
setTimeout(refreshMoreMenu, 500);
|
||||
});
|
||||
}());
|
||||
|
||||
|
||||
@@ -81,9 +81,7 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php
|
||||
$this->moduleName = $this->app->rawModule;
|
||||
$this->methodName = $this->app->rawMethod;
|
||||
foreach(customModel::getFeatureMenu($this->moduleName, $this->methodName) as $menuItem)
|
||||
foreach(customModel::getFeatureMenu($this->app->rawModule, $this->app->rawMethod) as $menuItem)
|
||||
{
|
||||
if(isset($menuItem->hidden)) continue;
|
||||
if($menuItem->name == 'emptysr' && $storyType == 'story') continue;
|
||||
|
||||
@@ -3,6 +3,7 @@ $lang->repo->common = 'Repo';
|
||||
$lang->repo->browse = 'View';
|
||||
$lang->repo->viewRevision = 'View Revision';
|
||||
$lang->repo->product = 'Product';
|
||||
$lang->repo->execution = $lang->execution->common;
|
||||
$lang->repo->create = 'Create';
|
||||
$lang->repo->createAction = 'Create Repo';
|
||||
$lang->repo->maintain = 'Repo List';
|
||||
|
||||
@@ -3,6 +3,7 @@ $lang->repo->common = 'Repo';
|
||||
$lang->repo->browse = 'View';
|
||||
$lang->repo->viewRevision = 'View Revision';
|
||||
$lang->repo->product = 'Product';
|
||||
$lang->repo->execution = $lang->execution->common;
|
||||
$lang->repo->create = 'Create';
|
||||
$lang->repo->maintain = 'Repo List';
|
||||
$lang->repo->edit = 'Edit';
|
||||
|
||||
@@ -3,6 +3,7 @@ $lang->repo->common = 'Référentiel';
|
||||
$lang->repo->browse = 'Aff';
|
||||
$lang->repo->viewRevision = 'Aff Modifs';
|
||||
$lang->repo->product = 'Product';
|
||||
$lang->repo->execution = $lang->execution->common;
|
||||
$lang->repo->create = 'Créer';
|
||||
$lang->repo->createAction = 'Créer Ref';
|
||||
$lang->repo->maintain = 'Liste Ref';
|
||||
|
||||
@@ -3,6 +3,7 @@ $lang->repo->common = 'Repo';
|
||||
$lang->repo->browse = 'Xem';
|
||||
$lang->repo->viewRevision = 'Xem Revision';
|
||||
$lang->repo->product = 'Product';
|
||||
$lang->repo->execution = $lang->execution->common;
|
||||
$lang->repo->create = 'Tạo';
|
||||
$lang->repo->createAction = 'Tạo Repo';
|
||||
$lang->repo->maintain = 'Repo danh sách';
|
||||
|
||||
@@ -3,7 +3,7 @@ $lang->repo->common = '代码';
|
||||
$lang->repo->browse = '浏览';
|
||||
$lang->repo->viewRevision = '查看修订';
|
||||
$lang->repo->product = '所属产品';
|
||||
$lang->repo->execution = '所属' . $lang->executionCommon;
|
||||
$lang->repo->execution = '所属' . $lang->execution->common;
|
||||
$lang->repo->create = '创建';
|
||||
$lang->repo->maintain = '版本库列表';
|
||||
$lang->repo->edit = '编辑';
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<div class="page-title">
|
||||
<?php
|
||||
echo html::a($this->repo->createLink('browse', "repoID=$repoID&branchID=&objectID=$objectID"), $repo->name, '', "data-app='{$app->openApp}'");
|
||||
$paths= explode('/', $entry);
|
||||
$paths = explode('/', $entry);
|
||||
$fileName = array_pop($paths);
|
||||
$postPath = '';
|
||||
foreach($paths as $pathName)
|
||||
@@ -41,7 +41,7 @@
|
||||
if(strpos($repo->SCM, 'Subversion') === false)
|
||||
{
|
||||
$oldRevision = $oldRevision == '^' ? "$newRevision" : $oldRevision;
|
||||
echo " <span class='label label-info'>" . substr($oldRevision, 0, 10) . " : " . substr($newRevision, 0, 10) . ' (' . $historys[$oldRevision] . ' : ' . $historys[$newRevision] . ')</span>';
|
||||
echo " <span class='label label-info'>" . substr($oldRevision, 0, 10) . " : " . substr($newRevision, 0, 10) . ' (' . zget($historys, $oldRevision, '') . ' : ' . zget($historys, $newRevision, '') . ')</span>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user