* code for bug #3099.

This commit is contained in:
wangyidong
2020-04-23 15:30:52 +08:00
parent fc5de2944e
commit 468c11e1c3
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -73,6 +73,7 @@ $lang->testreport->errorTrunk = "主干版本不能创建测试报告,请
$lang->testreport->noTestTask = "该{$lang->productCommon}下还没有关联非Trunk的测试单,不能创建报告。请先创建测试单,再创建。";
$lang->testreport->noObjectID = "没有选定测试单或{$lang->projectCommon},无法创建测试报告!";
$lang->testreport->moreProduct = "只能对同一个{$lang->productCommon}生成测试报告。";
$lang->testreport->hiddenCase = "隐藏 %s 个用例";
$lang->testreport->bugSummary = <<<EOD
共发现<strong>%s</strong>个Bug <a data-toggle='tooltip' class='text-warning' title='{$lang->testreport->foundBugTip}'><i class='icon-help'></i></a>,
@@ -15,7 +15,11 @@
</thead>
<?php if($cases):?>
<tbody>
<?php $i = 0;?>
<?php foreach($cases as $case):?>
<?php if(!isset($pager) and $i > 50):?>
<?php echo html::hidden('cases[]', $case->id);?>
<?php else:?>
<tr>
<td><?php echo sprintf('%03d', $case->id) . html::hidden('cases[]', $case->id)?></td>
<td><span class='label-pri label-pri-<?php echo $case->pri?>' title='<?php echo zget($lang->testcase->priList, $case->pri);?>'><?php echo zget($lang->testcase->priList, $case->pri);?></span></td>
@@ -30,13 +34,22 @@
<span class="status-case status-<?php echo $case->status?>"><?php echo $status;?></span>
</td>
</tr>
<?php endif;?>
<?php $i++;?>
<?php endforeach;?>
<?php if(!isset($pager) and $i > 50):?>
<tr>
<td colspan='9'><?php echo sprintf($lang->testreport->hiddenCase, count($cases) - 50);?></td>
</tr>
<?php endif;?>
</tbody>
<?php if(isset($pager)):?>
<tfoot>
<tr>
<td class='text-right' colspan='9'><?php $pager->show('right', 'pagerjs');?></td>
</tr>
</tfoot>
<?php endif;?>
<?php else:?>
<tr><td class='none-data' colspan='9'><?php echo $lang->testreport->none;?></td></tr>
<?php endif;?>