* Optimize pages.
This commit is contained in:
@@ -1289,19 +1289,28 @@ class testcaseModel extends model
|
||||
if($col->show)
|
||||
{
|
||||
$class = '';
|
||||
if($id == 'status') $class .= $case->status;
|
||||
if($id == 'title') $class .= ' text-left';
|
||||
if($id == 'actions')$class .= ' c-actions';
|
||||
$title = '';
|
||||
if($id == 'title')
|
||||
{
|
||||
$class .= ' text-left';
|
||||
$title = "title='{$case->title}'";
|
||||
}
|
||||
if($id == 'status')
|
||||
{
|
||||
$class .= $case->status;
|
||||
$title = "title='" . zget($this->lang->testcase->statusList, $case->status) . "'";
|
||||
}
|
||||
if($id == 'actions') $class .= ' c-actions';
|
||||
if($id == 'lastRunResult') $class .= $case->lastRunResult;
|
||||
|
||||
echo "<td class='" . $class . "'" . ($id=='title' ? " title='{$case->title}'":'') . ">";
|
||||
echo "<td class='{$class}' {$title}>";
|
||||
switch($id)
|
||||
{
|
||||
case 'id':
|
||||
echo $mode == 'table' ? html::checkbox('caseIDList', array($case->id => sprintf('%03d', $case->id))) : sprintf('%03d', $case->id);
|
||||
break;
|
||||
case 'pri':
|
||||
echo "<span class='pri" . zget($this->lang->testcase->priList, $case->pri, $case->pri) . "'>";
|
||||
echo "<span class='label-pri label-pri-" . $case->pri . "'>";
|
||||
echo zget($this->lang->testcase->priList, $case->pri, $case->pri);
|
||||
echo "</span>";
|
||||
break;
|
||||
@@ -1331,7 +1340,9 @@ class testcaseModel extends model
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<span class='status-{$case->status}'><span class='label label-dot'></span><span class='status-text'>";
|
||||
echo $this->lang->testcase->statusList[$case->status];
|
||||
echo '</span></span>';
|
||||
}
|
||||
break;
|
||||
case 'story':
|
||||
|
||||
@@ -71,7 +71,9 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<span class='status-{$case->status}'><span class='label label-dot'></span><span class='status-text'>";
|
||||
echo $lang->testcase->statusList[$case->status];
|
||||
echo '</span></span>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
@@ -286,6 +286,7 @@
|
||||
<?php
|
||||
if(!$isLibCase)
|
||||
{
|
||||
echo "<div class='divider'></div>";
|
||||
common::printIcon('testtask', 'runCase', "runID=$runID&caseID=$case->id&version=$case->currentVersion", $case, 'button', '', '', 'runCase', false, "data-width='95%'");
|
||||
common::printIcon('testtask', 'results', "runID=$runID&caseID=$case->id&version=$case->version", $case, 'button', '', '', 'results', false, "data-width='95%'");
|
||||
|
||||
@@ -293,7 +294,6 @@
|
||||
}
|
||||
if($config->testcase->needReview or !empty($config->testcase->forceReview)) common::printIcon('testcase', 'review', "caseID=$case->id", $case, 'button', 'review', '', 'iframe');
|
||||
?>
|
||||
<div class='divider'></div>
|
||||
<?php
|
||||
common::printIcon('testcase', 'edit',"caseID=$case->id", $case);
|
||||
if(!$isLibCase) common::printIcon('testcase', 'create', "productID=$case->product&branch=$case->branch&moduleID=$case->module&from=testcase¶m=$case->id", $case, 'button', 'copy');
|
||||
|
||||
Reference in New Issue
Block a user