show router community

This commit is contained in:
Dominik Heidler 2015-12-22 10:06:14 +01:00
parent c888bf28b9
commit e9e53b1344
2 changed files with 11 additions and 3 deletions

View File

@ -224,6 +224,10 @@ def parse_nodewatcher_xml(xml):
}
}
# data.system_data.firmware_community
if len(tree.xpath("/data/system_data/firmware_community/text()")) > 0:
router_update["community"] = tree.xpath("/data/system_data/firmware_community/text()")[0]
# data.system_data.status_text
if len(tree.xpath("/data/system_data/status_text/text()")) > 0:
router_update["system"]["status_text"] = tree.xpath("/data/system_data/status_text/text()")[0]

View File

@ -114,12 +114,16 @@
<tr><th>Position</th><td>{{ router.position.comment }}</td></tr>
{%- endif %}
{%- if router.hood %}
<tr><th>Hood</th><td>{{ router.hood }}</td></tr>
<tr><th>Hood</th><td>{{ router.hood }}
{%- if router.community %}
({{ router.community }})
{%- endif -%}
</td></tr>
{%- endif %}
{%- if router.user %}
<tr><th>User</th><td><a href="{{ url_for('router_list') }}?q=user.nickname:{{ router.user.nickname }}">{{ router.user.nickname }}</a></td></tr>
{%- endif %}
<tr><th>Hardware</th><td>{{ router.hardware.name }} ({{ router.hardware.chipset }})</td></tr>
<tr><th>Hardware</th><td><span title="{{ router.hardware.chipset }}">{{ router.hardware.name }}</span></td></tr>
<tr><th>WAN Uplink</th><td><span class="{{ "glyphicon glyphicon-ok" if router.system.has_wan_uplink else "glyphicon glyphicon-remove" }}"></span></td></tr>
<tr><th>Clients</th><td>{{ router.system.clients }}</td></tr>
</table>
@ -136,7 +140,7 @@
<table class="table table-condensed">
<tr><th>Operating&nbsp;System</th><td>{{ router.software.os }}</td></tr>
<tr><th>Kernel</th><td>{{ router.software.kernel }}</td></tr>
<tr><th>Firmware</th><td>{{ router.software.firmware }} ({{ router.software.firmware_rev }})</td></tr>
<tr><th>Firmware</th><td><span title="{{ router.software.firmware_rev }}">{{ router.software.firmware }}</span></td></tr>
<tr><th>B.A.T.M.A.N. adv</th><td>{{ router.software.batman_adv }}</td></tr>
<tr><th>Nodewatcher</th><td>{{ router.software.nodewatcher }}</td></tr>
</table>