diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/kbn_templates/modems.j2 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/web/kbn_templates/modems.j2 b/web/kbn_templates/modems.j2 index fee1dd3..1cbf04d 100644 --- a/web/kbn_templates/modems.j2 +++ b/web/kbn_templates/modems.j2 @@ -3,14 +3,16 @@ {% block content %} {{ breadcrumbs([{'text': 'modems'|lang}]) }} -{% for modem in modems %} -<h6 class="text-primary{% if not loop.first %} mt-4{% endif %}">{{ (modem|lang('modems'))['full'] }}</h6> -<div id="modem_data_{{ modem }}"> - {% include "loading.j2" %} +{% for modem, mdata in modems.items() %} + {% if mdata['type'] == 'e3372' %} + <h6 class="text-primary{% if not loop.first %} mt-4{% endif %}">{{ (modem|lang('modems'))['full'] }}</h6> + <div id="modem_data_{{ modem }}"> + {% include "loading.j2" %} + {% endif %} </div> {% endfor %} {% endblock %} {% block js %} -ModemStatus.init({{ modems.keys()|tojson }}); +ModemStatus.init({{ modems_js_list|tojson }}); {% endblock %} |