| 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 extras %} |
| 9 | |
| 10 | {% block configuration %} |
| 11 | {{ block.super }} |
| 12 | |
| 13 | <h3>{% trans "Manage Wikis and Blogs" %}</h3> |
| 14 | |
| 15 | <div class="btn-toolbar"> |
| 16 | <a href="{% url 'ikiwiki:create' %}" class="btn btn-default" |
| 17 | role="button" title="{% trans 'Create Wiki or Blog' %}"> |
| 18 | {% icon 'plus' %} |
| 19 | {% trans 'Create Wiki or Blog' %} |
| 20 | </a> |
| 21 | </div> |
| 22 | |
| 23 | <div class="row"> |
| 24 | <div class="col-md-6"> |
| 25 | {% if not sites %} |
| 26 | <p>{% trans "No wikis or blogs available." %}</p> |
| 27 | {% else %} |
| 28 | <div class="list-group list-group-two-column"> |
| 29 | {% for site in sites %} |
| 30 | <div class="list-group-item"> |
| 31 | <a class="wiki-label primary" href="/ikiwiki/{{ site.0 }}" |
| 32 | title="{% blocktrans with site=site.1 %}Go to site {{ site }}{% endblocktrans %}"> |
| 33 | {{ site.1 }} |
| 34 | </a> |
| 35 | |
| 36 | <a href="{% url 'ikiwiki:delete' site.0 %}" |
| 37 | class="btn btn-default btn-sm secondary" |
| 38 | role="button" |
| 39 | title="{% blocktrans with site=site.1 %}Delete site {{ site }}{% endblocktrans %}"> |
| 40 | {% icon 'trash-o' %} |
| 41 | </a> |
| 42 | </div> |
| 43 | {% endfor %} |
| 44 | </div> |
| 45 | {% endif %} |
| 46 | </div> |
| 47 | </div> |
| 48 | {% endblock %} |