| 1 | {% extends "app.html" %} |
| 2 | {% comment %} |
| 3 | # SPDX-License-Identifier: AGPL-3.0-or-later |
| 4 | {% endcomment %} |
| 5 | |
| 6 | {% load bootstrap %} |
| 7 | {% load i18n %} |
| 8 | {% load static %} |
| 9 | |
| 10 | {% block page_js %} |
| 11 | <script src="{% static 'tor/tor.js' %}" defer></script> |
| 12 | {% endblock %} |
| 13 | |
| 14 | {% block status %} |
| 15 | {{ block.super }} |
| 16 | |
| 17 | {% if status.hs_enabled %} |
| 18 | <div class="table-responsive"> |
| 19 | <table class="table tor-hs"> |
| 20 | <thead> |
| 21 | <tr> |
| 22 | <th>{% trans "Onion Service" %}</th> |
| 23 | <th>{% trans "Status" %}</th> |
| 24 | <th>{% trans "Ports" %}</th> |
| 25 | </tr> |
| 26 | </thead> |
| 27 | <tbody> |
| 28 | <tr> |
| 29 | <td class="tor-hs-hostname">{{ status.hs_hostname }}</td> |
| 30 | <td class="tor-hs-status">{{ status.hs_status }}</td> |
| 31 | <td class="tor-hs-services"> |
| 32 | {{ status.hs_services|join:', ' }} |
| 33 | </td> |
| 34 | </tr> |
| 35 | </tbody> |
| 36 | </table> |
| 37 | </div> |
| 38 | {% endif %} |
| 39 | {% endblock %} |
| 40 | |
| 41 | {% block internal_zone %} |
| 42 | {{ block.super }} |
| 43 | {% endblock %} |