mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
remove dash-nothing for the build for deb packages from the packages page, alternate colours through css
git-svn-id: http://www.observium.org/svn/observer/trunk@3077 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -5,10 +5,10 @@ echo('<table cellspacing="0" cellpadding="5" width="100%">');
|
||||
$i=0;
|
||||
foreach (dbFetchRows("SELECT * FROM `packages` WHERE `device_id` = ? ORDER BY `name`", array($device['device_id'])) as $entry)
|
||||
{
|
||||
if (!is_integer($i/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
echo("<tr bgcolor=$row_colour>");
|
||||
echo('<tr class="list">');
|
||||
echo('<td width=200><a href="'. generate_url($vars, array('name' => $entry['name'])).'">'.$entry['name'].'</a></td>');
|
||||
echo("<td>".$entry['version']."-".$entry['build']."</td>");
|
||||
if ($build != '') { $dbuild = '-'.$entry['build']; } else { $dbuild = ''; }
|
||||
echo("<td>".$entry['version'].$dbuild."</td>");
|
||||
echo("<td>".$entry['arch']."</td>");
|
||||
echo("<td>".$entry['manager']."</td>");
|
||||
echo("<td>".format_si($entry['size'])."</td>");
|
||||
|
||||
Reference in New Issue
Block a user