show router uptime

This commit is contained in:
Dominik Heidler 2015-12-22 09:20:48 +01:00
parent d40b374e3d
commit c888bf28b9
1 changed files with 5 additions and 1 deletions

View File

@ -95,7 +95,11 @@
{{ router.hostname }}
{%- endif %}
</td></tr>
<tr><th>Status</th><td><span class="{{ router.status|status2css }}">{{ router.status }}</span></td></tr>
<tr><th>Status</th><td><span class="{{ router.status|status2css }}">{{ router.status }}</span>
{%- if router.status == "online" %}
({{ router.system.uptime|format_ts_diff }} up)
{%- endif -%}
</td></tr>
<tr><th>Created</th><td>
{{ router.created|utc2local|format_dt }}
</td></tr>