pyfedi/app/templates/admin/topics.html

36 lines
No EOL
1.2 KiB
HTML

{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
{% extends 'themes/' + theme() + '/base.html' %}
{% else %}
{% extends "base.html" %}
{% endif %} %}
{% from 'bootstrap/form.html' import render_form %}
{% block app_content %}
<div class="row">
<div class="col">
{% include 'admin/_nav.html' %}
</div>
</div>
<div class="row">
<div class="col">
<p><a href="{{ url_for('admin.admin_topic_add') }}" class="btn btn-primary">{{ _('Add topic') }}</a></p>
<table class="table table-striped">
<tr>
<th>Name</th>
<th># Communities</th>
<th>Actions</th>
</tr>
{% for topic in topics %}
<tr>
<td>{{ topic.name }}</td>
<td>{{ topic.num_communities }}</td>
<td><a href="{{ url_for('admin.admin_topic_edit', topic_id=topic.id) }}">Edit</a> |
<a href="{{ url_for('admin.admin_topic_delete', topic_id=topic.id) }}" class="confirm_first">Delete</a>
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
{% endblock %}