* adjust style for testtask-results.
This commit is contained in:
@@ -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?> <span class='text-info'> <?php printf($lang->testtask->showResult, $count)?></span> <span class='result-tip'></span></strong>
|
||||
<strong><?php echo $lang->testcase->result?> <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'> <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'> #<?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>
|
||||
|
||||
Reference in New Issue
Block a user