* Add version drop down and deleted tip.
This commit is contained in:
@@ -95,7 +95,7 @@ $lang->testcase->fromCaselib = '来自用例库用例';
|
||||
$lang->testcase->fromCaseID = '用例来源ID';
|
||||
$lang->testcase->fromCaseVersion = '用例来源版本';
|
||||
$lang->testcase->mailto = '抄送给';
|
||||
$lang->testcase->deleted = '是否删除';
|
||||
$lang->testcase->deleted = '已删除';
|
||||
$lang->testcase->browseUnits = '单元测试';
|
||||
$lang->testcase->suite = '套件';
|
||||
$lang->testcase->executionStatus = '执行状态';
|
||||
|
||||
@@ -51,8 +51,6 @@ $app->loadLang('product');
|
||||
$productLink = $case->product && hasPriv('product', 'view') ? $this->createLink('product', 'view', "productID={$case->product}") : '';
|
||||
$branchLink = $case->branch && hasPriv('testcase', 'browse') ? $this->createLink('testcase', 'browse', "productID={$case->product}&branch={$case->branch}") : '';
|
||||
|
||||
\a();
|
||||
|
||||
$fromCaseItem = array();
|
||||
$libItem = array();
|
||||
$productItem = array();
|
||||
@@ -319,6 +317,8 @@ foreach(explode(',', $case->reviewedBy) as $account)
|
||||
$reviewedBy = trim($reviewedBy);
|
||||
|
||||
$isInModal = isAjaxRequest('modal');
|
||||
$versions = array();
|
||||
for($i = $case->version; $i >= 1; $i --) $versions[] = array('text' => "#{$i}", 'url' => inlink('view', "caseID={$case->id}&version={$i}"), 'active' => $i == $version);
|
||||
detailHeader
|
||||
(
|
||||
to::title
|
||||
@@ -328,7 +328,13 @@ detailHeader
|
||||
set::entityID($case->id),
|
||||
set::level(1),
|
||||
span(setStyle('color', $case->color), $case->title)
|
||||
)
|
||||
),
|
||||
count($versions) > 1 ? dropdown
|
||||
(
|
||||
btn(setClass('btn-link'), "#{$version}"),
|
||||
set::items($versions)
|
||||
) : null,
|
||||
$case->deleted ? span(setClass('label danger'), $lang->case->deleted) : null
|
||||
),
|
||||
$isInModal ? to::prefix('') : null,
|
||||
!$isInModal ? to::suffix
|
||||
|
||||
Reference in New Issue
Block a user