router.html: Display Gateway

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2018-04-27 15:19:56 +02:00
parent 5e60c70ca5
commit b21b6c9201
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@
{% block content %}
<div class="row" style="margin-top: 5px; margin-bottom: 5px;">
<div class="col-xs-12 col-sm-10">
<h2 style="margin-top: 10px;">Router: {{ router.hostname }}</h2>
<h2 style="margin-top: 10px;">{%- if router.gateway %}Gateway{%- else %}Router{%- endif %}: {{ router.hostname }}</h2>
{%- if mac %}
<h4 style="margin-top: 10px;margin-bottom: 20px">Perma-Link: <a href="{{ url_for('router_mac', mac=mac, _external=True) }}">{{ url_for('router_mac', mac=mac, _external=True) }}</a></h4>
{%- endif %}