portal: use list template for alarms
This commit is contained in:
parent
ad63a9ff41
commit
36b20f392a
4 changed files with 45 additions and 45 deletions
|
@ -1,14 +1,15 @@
|
|||
{% extends "base.html.j2" %}
|
||||
{% from "tables.html.j2" import automations_table, bridgeconfs_table, bridges_table,
|
||||
groups_table, mirrorlists_table, origins_table, origin_onion_table,
|
||||
onions_table, proxies_table %}
|
||||
{% from "tables.html.j2" import alarms_table, automations_table, bridgeconfs_table, bridges_table,
|
||||
groups_table, mirrorlists_table, origins_table, origin_onion_table, onions_table, proxies_table %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="h2 mt-3">{{ title }}</h1>
|
||||
{% if new_link %}
|
||||
<a href="{{ new_link }}" class="btn btn-success">Create new {{ item }}</a>
|
||||
{% endif %}
|
||||
{% if item == "automation" %}
|
||||
{% if section == "alarm" %}
|
||||
{{ alarms_table(items) }}
|
||||
{% elif item == "automation" %}
|
||||
{{ automations_table(items) }}
|
||||
{% elif item == "bridge configuration" %}
|
||||
{{ bridgeconfs_table(items) }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue