* Adjust the bug severity icon.

This commit is contained in:
chencongzhi520@gmail.com
2012-06-30 08:22:32 +00:00
parent 23dddd5526
commit 77ab2c769f
3 changed files with 13 additions and 17 deletions
+3 -9
View File
@@ -1,12 +1,6 @@
.closed {background:#efefef; text-decoration:line-through;}
.closed a {text-decoration:none;}
.resolved {background:#8EC21F;}
.active1 {background:#E70014;}
.active2 {background:#EA5407;}
.active3 {background:#F39801;}
.active4 {background:#FFF100;}
.resolved a, .active1 a, .active2 a, .active3 a{color:white; text-decoration:none}
.active4 a {color:blue; text-decoration:none}
.closed, .closed a{color:gray; text-decoration:line-through;font-weight:bold }
.resolved, .resolved a{color:#8EC21F; text-decoration:none; font-weight:bold}
.confirm0 {color:gray; font-size:9px}
.confirm1 {color:green; font-size:9px}
tfoot .f-left {color:#141414;}
+5 -8
View File
@@ -101,9 +101,11 @@ var customed = <?php echo (int)$customed;?>;
<?php foreach($bugs as $bug):?>
<?php $bugLink = inlink('view', "bugID=$bug->id");?>
<tr class='a-center'>
<?php $class = $bug->status == 'active' ? 'active' . $bug->severity : $bug->status;?>
<td class='<?php echo $class;?>'> <?php echo html::a($bugLink, sprintf('%03d', $bug->id));?> </td>
<td><?php echo $lang->bug->severityList[$bug->severity]?></td>
<td class='<?php echo $bug->status;?>'><?php echo html::a($bugLink, sprintf('%03d', $bug->id));?></td>
<td>
<span class='<?php echo 'severity' . $bug->severity;?>'>&nbsp;</span>
<?php echo $lang->bug->severityList[$bug->severity]?>
</td>
<td><?php echo $lang->bug->priList[$bug->pri]?></td>
<?php $class = 'confirm' . $bug->confirmed;?>
@@ -157,11 +159,6 @@ var customed = <?php echo (int)$customed;?>;
echo "<span class='$status'> $label </span> ";
continue;
}
rsort($this->lang->bug->severityList);
foreach($this->lang->bug->severityList as $severity)
{
echo "<span class='$status$severity'> {$lang->bug->severity}:$severity </span> ";
}
}
?>
</div>
+5
View File
@@ -446,6 +446,11 @@ table.tablesorter thead tr .headerSortDown {background-image: url(./images/table
.icon-green-small-bug-close {padding:2px 8px; background:url(images/main/zt-green.png) -80px -300px;}
.icon-gray-small-bug-close {padding:2px 8px; background:url(images/main/zt-gray.png) -80px -300px;}
.severity1 {padding:2px 8px; background:url(images/main/zt-green.png) 0px -380px no-repeat;}
.severity2 {padding:2px 8px; background:url(images/main/zt-green.png) -20px -380px no-repeat;}
.severity3 {padding:2px 8px; background:url(images/main/zt-green.png) -40px -380px no-repeat;}
.severity4 {padding:2px 8px; background:url(images/main/zt-green.png) -60px -380px no-repeat;}
/* Case icons. */
#featurebar .f-right .icon-green-big-case-create {padding:2px 7px 2px 10px; background:url(images/main/zt-green.png) 0px -320px;}
#featurebar .f-right .icon-green-big-case-batchCreate {padding:2px 7px 2px 10px; background:url(images/main/zt-green.png) -20px -320px;}