Skip to content

Commit 76dd898

Browse files
committed
Merge pull request tariqbuilds#277 from triforce/master
Emphasize the static data plugin key values. Also added handling in for ...
2 parents 6dbf4dd + f82c7fe commit 76dd898

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)