show content warnings in admin community overview

This commit is contained in:
Hendrik Langer 2024-06-26 22:38:02 +02:00
parent 10b9f859a9
commit 8cb61c27fa

View file

@ -18,10 +18,11 @@
<th>Name</th>
<th>Title</th>
<th>Topic</th>
<th># Posts</th>
<th>#&nbsp;Posts</th>
<th>Home</th>
<th>Popular</th>
<th>All</th>
<th>Warning</th>
<th>Actions</th>
</tr>
{% for community in communities.items %}
@ -34,6 +35,7 @@
<th>{{ '&check;'|safe if community.show_home else '&cross;'|safe }}</th>
<th>{{ '&check;'|safe if community.show_popular else '&cross;'|safe }}</th>
<th>{{ '&check;'|safe if community.show_all else '&cross;'|safe }}</th>
<th>{{ '&#x26A0;'|safe if community.nsfw or community.nsfl or community.content_warning else ''|safe }}</th>
<td><a href="/c/{{ community.link() }}">View</a> |
<a href="{{ url_for('admin.admin_community_edit', community_id=community.id) }}">Edit</a> |
<a href="{{ url_for('admin.admin_community_delete', community_id=community.id) }}" class="confirm_first">Delete</a>