Merge pull request 'show content warnings in admin community overview' (#228) from h3ndrik/pyfedi:admin_community into main

Reviewed-on: https://codeberg.org/rimu/pyfedi/pulls/228
This commit is contained in:
rimu 2024-06-27 07:30:49 +00:00
commit ce7f2b6293

View file

@ -18,10 +18,11 @@
<th>Name</th> <th>Name</th>
<th>Title</th> <th>Title</th>
<th>Topic</th> <th>Topic</th>
<th># Posts</th> <th>#&nbsp;Posts</th>
<th>Home</th> <th>Home</th>
<th>Popular</th> <th>Popular</th>
<th>All</th> <th>All</th>
<th>Warning</th>
<th>Actions</th> <th>Actions</th>
</tr> </tr>
{% for community in communities.items %} {% 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_home else '&cross;'|safe }}</th>
<th>{{ '&check;'|safe if community.show_popular 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>{{ '&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> | <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_edit', community_id=community.id) }}">Edit</a> |
<a href="{{ url_for('admin.admin_community_delete', community_id=community.id) }}" class="confirm_first">Delete</a> <a href="{{ url_for('admin.admin_community_delete', community_id=community.id) }}" class="confirm_first">Delete</a>