* adjust style for testtask-results.

This commit is contained in:
wangyidong
2014-08-26 01:50:05 +00:00
parent 9a5f14614b
commit 232e7214f3
5 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -128,12 +128,12 @@ $lang->action->label->unlinkedfromplan = '移除計劃';
$lang->action->label->marked = '編輯了';
$lang->action->label->linked2project = '關聯項目';
$lang->action->label->unlinkedfromproject = '移除項目';
$lang->action->label->started = '開始';
$lang->action->label->restarted = '繼續';
$lang->action->label->started = '開始了';
$lang->action->label->restarted = '繼續了';
$lang->action->label->recordestimate = '記錄了工時';
$lang->action->label->editestimate = '編輯了工時';
$lang->action->label->canceled = '取消了';
$lang->action->label->finished = '完成';
$lang->action->label->finished = '完成了';
$lang->action->label->paused = '暫停了';
$lang->action->label->delayed = '延期';
$lang->action->label->suspended = '掛起';
+2 -2
View File
@@ -77,8 +77,8 @@ $lang->testtask->linkByBug = 'Link by bug';
$lang->testtask->passAll = 'Pass all';
$lang->testtask->pass = 'Pass';
$lang->testtask->fail = 'Fail';
$lang->testtask->showResult = 'Executed %s times';
$lang->testtask->showFail = 'Failed %s times';
$lang->testtask->showResult = 'Executed <span class="text-info">%s</span> times';
$lang->testtask->showFail = 'Failed <span class="text-danger">%s</span times';
$lang->testtask->confirmDelete = 'Are you sure to delete this test build?';
$lang->testtask->confirmUnlinkCase = 'Are you sure to unlink this case?';
+2 -2
View File
@@ -77,8 +77,8 @@ $lang->testtask->linkByBug = '按Bug关联';
$lang->testtask->passAll = '全部通过';
$lang->testtask->pass = '通过';
$lang->testtask->fail = '失败';
$lang->testtask->showResult = '共执行%s次';
$lang->testtask->showFail = '失败%s次';
$lang->testtask->showResult = '共执行<span class="text-info">%s</span>次';
$lang->testtask->showFail = '失败<span class="text-danger">%s</span>次';
$lang->testtask->confirmDelete = '您确认要删除该测试任务吗?';
$lang->testtask->confirmUnlinkCase = '您确认要移除该用例吗?';
+2 -2
View File
@@ -77,8 +77,8 @@ $lang->testtask->linkByBug = '按Bug關聯';
$lang->testtask->passAll = '全部通過';
$lang->testtask->pass = '通過';
$lang->testtask->fail = '失敗';
$lang->testtask->showResult = '共執行%s次';
$lang->testtask->showFail = '失敗%s次';
$lang->testtask->showResult = '共執行<span class="text-info">%s</span>次';
$lang->testtask->showFail = '失敗<span class="text-danger">%s</span>次';
$lang->testtask->confirmDelete = '您確認要刪除該測試任務嗎?';
$lang->testtask->confirmUnlinkCase = '您確認要移除該用例嗎?';
+4 -4
View File
@@ -32,7 +32,7 @@
<?php if(isset($build)):?>
<div class='pull-right'><strong class='text-important'><?php echo $lang->testtask->build . $lang->colon . $build;?></strong></div>
<?php endif; ?>
<strong><?php echo $lang->testcase->result?> &nbsp;<span class='text-info'> <?php printf($lang->testtask->showResult, $count)?></span> <span class='result-tip'></span></strong>
<strong><?php echo $lang->testcase->result?> &nbsp;<span> <?php printf($lang->testtask->showResult, $count)?></span> <span class='result-tip'></span></strong>
</caption>
<?php $failCount = 0; ?>
<?php foreach($results as $result):?>
@@ -40,8 +40,8 @@
$class = ($result->caseResult == 'pass' ? 'success' : ($result->caseResult == 'fail' ? 'danger' : ($result->caseResult == 'blocked' ? 'warning' : '')));
if($class != 'success') $failCount++;
?>
<tr class='result-item <?php echo $class?>' style='cursor: pointer'>
<td class='w-120px'> &nbsp; <i class='icon-circle<?php if($result->caseResult == 'n/a') echo '-empty';?> text-<?php echo $class;?>'></i> #<?php echo $result->id?></td>
<tr class='result-item' style='cursor: pointer'>
<td class='w-120px'> &nbsp; #<?php echo $result->id?></td>
<td class='w-180px'><?php echo $result->date;?></td>
<td><?php echo $users[$result->lastRunner] . ' ' . $lang->testtask->runCase;?></td>
<td class='text-right'><strong class='text-<?php echo $class;?>'><?php echo $lang->testcase->resultList[$result->caseResult]?></strong></td>
@@ -82,7 +82,7 @@
</tr>
<?php endforeach;?>
</table>
<div id='resultTip' class='hide'><?php if($count > 0) echo $failCount > 0 ? "<span class='text-danger'>" . sprintf($lang->testtask->showFail, $failCount) . "</span>":"<span class='text-success'>{$lang->testtask->passAll}</span>";?></div>
<div id='resultTip' class='hide'><?php if($count > 0) echo $failCount > 0 ? "<span>" . sprintf($lang->testtask->showFail, $failCount) . "</span>":"<span class='text-success'>{$lang->testtask->passAll}</span>";?></div>
<style>.table-hover tr.result-detail:hover td {background: #fff}</style>
</div>
</div>