mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -08:00
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:
commit
ce7f2b6293
1 changed files with 3 additions and 1 deletions
|
@ -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># 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>{{ '✓'|safe if community.show_home else '✗'|safe }}</th>
|
<th>{{ '✓'|safe if community.show_home else '✗'|safe }}</th>
|
||||||
<th>{{ '✓'|safe if community.show_popular else '✗'|safe }}</th>
|
<th>{{ '✓'|safe if community.show_popular else '✗'|safe }}</th>
|
||||||
<th>{{ '✓'|safe if community.show_all else '✗'|safe }}</th>
|
<th>{{ '✓'|safe if community.show_all else '✗'|safe }}</th>
|
||||||
|
<th>{{ '⚠'|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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue