* Modify page style.

This commit is contained in:
caoyanyi
2022-02-15 15:27:16 +08:00
parent f2bdff075d
commit 5c9b06bdfb
2 changed files with 3 additions and 12 deletions
+1 -3
View File
@@ -1,3 +1 @@
.table-report .table-nest-icon {color: #000; font-weight: 700;}
.table-report .label-pri {border: 4px solid #D4333F; height: 25px; width: 25px; border-radius: 25px; margin-left: 5px;}
.table-report .label-pri .label-full {display: block; transform: translate(-20%, 6%); background-color: #D4333F; width: 15px; height: 15px; border-radius: 15px;}
.table-report .table-nest-icon {color: #000; font-weight: 700; height: 16px;}
+2 -9
View File
@@ -43,20 +43,13 @@
</tr>
</thead>
<tbody>
<?php
$emptyRing = "<span class='label-pri'></span>";
$fullRing = "<span class='label-pri'><span class='label-full'></span></span>";
$coverageIcon = $measures['coverage'] != '0.0%' ? $fullRing : $emptyRing;
$duplicationIcon = $measures['duplicated_lines_density'] != '0.0%' ? $fullRing : $emptyRing;
?>
<tr class="text-center">
<td><?php echo $measures['bugs'];?></td>
<td><?php echo $measures['vulnerabilities'];?></td>
<td><?php echo $measures['security_hotspots_reviewed'];?></td>
<td><?php echo $measures['code_smells'];?></td>
<td><?php echo $measures['coverage'] . $coverageIcon;?></td>
<td><?php echo $measures['duplicated_lines_density'] . $duplicationIcon;?></td>
<td><?php echo $measures['coverage'];?></td>
<td><?php echo $measures['duplicated_lines_density'];?></td>
<td><?php echo $measures['ncloc'];?></td>
</tr>
</tbody>