2022-05-04 13:01:46 +01:00
|
|
|
{% extends "base.html.j2" %}
|
2022-05-13 15:40:59 +01:00
|
|
|
{% from "tables.html.j2" import alarms_table, automations_table, bridgeconfs_table, bridges_table, eotk_table,
|
2022-09-26 13:40:59 +01:00
|
|
|
groups_table, instances_table, mirrorlists_table, origins_table, origin_onion_table, onions_table, pools_table,
|
|
|
|
proxies_table, webhook_table %}
|
2022-05-04 13:01:46 +01:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1 class="h2 mt-3">{{ title }}</h1>
|
|
|
|
{% if new_link %}
|
2022-05-12 17:03:26 +01:00
|
|
|
<a href="{{ new_link }}" class="btn btn-success">Create new {{ item }}</a>
|
|
|
|
{% for extra_button in extra_buttons %}
|
|
|
|
<a href="{{ extra_button.link }}" class="btn btn-{{ extra_button.style }}">{{ extra_button.text }}</a>
|
|
|
|
{% endfor %}
|
2022-05-04 13:01:46 +01:00
|
|
|
{% endif %}
|
2022-05-11 14:26:14 +01:00
|
|
|
{% if section == "alarm" %}
|
|
|
|
{{ alarms_table(items) }}
|
|
|
|
{% elif item == "automation" %}
|
2022-11-01 10:17:31 +00:00
|
|
|
{{ automations_table(items, states) }}
|
2022-05-08 17:20:04 +01:00
|
|
|
{% elif item == "bridge configuration" %}
|
2022-05-04 13:01:46 +01:00
|
|
|
{{ bridgeconfs_table(items) }}
|
|
|
|
{% elif item == "bridge" %}
|
|
|
|
{{ bridges_table(items) }}
|
|
|
|
{% elif item == "eotk" %}
|
|
|
|
{{ eotk_table(items) }}
|
|
|
|
{% elif item == "group" %}
|
|
|
|
{{ groups_table(items) }}
|
2022-08-17 13:05:56 +01:00
|
|
|
{% elif item == "distribution list" %}
|
2022-05-04 13:01:46 +01:00
|
|
|
{{ mirrorlists_table(items) }}
|
2022-05-04 15:36:36 +01:00
|
|
|
{% elif item == "onion service" %}
|
|
|
|
{% if section == "onion" %}
|
|
|
|
{{ onions_table(items) }}
|
|
|
|
{% elif section == "origin" %}
|
|
|
|
{{ origin_onion_table(items) }}
|
|
|
|
{% endif %}
|
2022-05-04 13:01:46 +01:00
|
|
|
{% elif item == "origin" %}
|
|
|
|
{{ origins_table(items) }}
|
2022-09-26 13:40:59 +01:00
|
|
|
{% elif item == "pool" %}
|
|
|
|
{{ pools_table(items) }}
|
2022-05-04 13:01:46 +01:00
|
|
|
{% elif item == "proxy" %}
|
|
|
|
{{ proxies_table(items) }}
|
2022-05-24 19:51:38 +01:00
|
|
|
{% elif item == "smart proxy" %}
|
|
|
|
{{ instances_table("smart_proxy", items) }}
|
2022-05-14 10:18:00 +01:00
|
|
|
{% elif item == "webhook" %}
|
|
|
|
{{ webhook_table(items) }}
|
2022-05-04 13:01:46 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|