2022-05-04 13:01:46 +01:00
|
|
|
{% extends "base.html.j2" %}
|
|
|
|
{% from "tables.html.j2" import bridgeconfs_table, bridges_table,
|
2022-05-04 15:36:36 +01:00
|
|
|
groups_table, mirrorlists_table, origins_table, origin_onion_table,
|
|
|
|
onions_table, proxies_table %}
|
2022-05-04 13:01:46 +01:00
|
|
|
|
|
|
|
{% 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 == "bridge configuration" %}
|
|
|
|
{{ bridgeconfs_table(items) }}
|
|
|
|
{% elif item == "bridge" %}
|
|
|
|
{{ bridges_table(items) }}
|
|
|
|
{% elif item == "eotk" %}
|
|
|
|
{{ eotk_table(items) }}
|
|
|
|
{% elif item == "group" %}
|
|
|
|
{{ groups_table(items) }}
|
|
|
|
{% elif item == "mirror list" %}
|
|
|
|
{{ 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) }}
|
|
|
|
{% elif item == "proxy" %}
|
|
|
|
{{ proxies_table(items) }}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|