portal: additional buttons on list pages
link to onion services page from origin page link to previews of distribution lists from lists
This commit is contained in:
parent
928edc46c2
commit
d54fae7423
9 changed files with 151 additions and 74 deletions
|
@ -102,7 +102,7 @@
|
|||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link{% if section == "blocklist" %} active{% endif %}"
|
||||
<a class="nav-link{% if section == "blocklist" %} active{% endif %} disabled text-secondary"
|
||||
href="#">
|
||||
{{ icon("file-earmark-excel") }} Block Lists
|
||||
</a>
|
||||
|
@ -119,13 +119,13 @@
|
|||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link{% if section == "smart_proxy" %} active{% endif %}"
|
||||
<a class="nav-link{% if section == "smart_proxy" %} active{% endif %} disabled text-secondary"
|
||||
href="#">
|
||||
{{ icon("globe") }} Smart Proxy Instances
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link{% if section == "eotk" %} active{% endif %}"
|
||||
<a class="nav-link{% if section == "eotk" %} active{% endif %} disabled text-secondary"
|
||||
href="#">
|
||||
{{ icon("server") }} EOTK Instances
|
||||
</a>
|
||||
|
|
|
@ -5,7 +5,10 @@
|
|||
{% block content %}
|
||||
<h1 class="h2 mt-3">{{ title }}</h1>
|
||||
{% if new_link %}
|
||||
<a href="{{ new_link }}" class="btn btn-success">Create new {{ item }}</a>
|
||||
<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 %}
|
||||
{% endif %}
|
||||
{% if section == "alarm" %}
|
||||
{{ alarms_table(items) }}
|
||||
|
|
|
@ -465,9 +465,9 @@
|
|||
{% for list in mirrorlists %}
|
||||
{% if not list.destroyed %}
|
||||
<tr class="align-middle">
|
||||
<td>{{ list.provider }}</td>
|
||||
<td>{{ list.format }}</td>
|
||||
<td>{{ list.url() }}</td>
|
||||
<td>{{ list.provider | provider_name }}</td>
|
||||
<td>{{ list.format | format_name }}</td>
|
||||
<td><a href="{{ list.url() }}">{{ list.url() }}</a></td>
|
||||
<td>{{ list.description }}</td>
|
||||
<td>
|
||||
<a href="{{ url_for("portal.list.list_destroy", list_id=list.id) }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue