Skip to content

Commit f82c7fe

Browse files
committed
Emphasize the static data plugin key values. Also added handling in for the uptime executable not being installed, which may be the prelude to handling if any of the utilities used are installed or not and to warn the user instead of leaving blank fields.
1 parent 6dbf4dd commit f82c7fe

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

libs/Modules/uptime.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ public function getData( $args = array( ) )
2626
$formatUptime .= $minutes . ' minute' . ( ( 1 < $minutes ) ? 's' : '' ) . ' ';
2727
}
2828

29-
return array(
29+
if (empty($formatUptime))
30+
$formatUptime = "n/a";
31+
32+
return array(
3033
'Server Uptime' => $formatUptime
3134
);
3235
}

templates/app/static-data-plugin.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<table>
77
<tbody ng-repeat="staticItem in staticData">
88
<tr ng-repeat="(key, val) in staticItem.info">
9-
<td>{{ key }}</td>
9+
<td><strong>{{ key }}</strong></td>
1010
<td>{{ val }}</td>
1111
</tr>
1212
</tbody>
1313
</table>
14-
</plugin>
14+
</plugin>

0 commit comments

Comments
 (0)