mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
view links for admin tables
This commit is contained in:
parent
13aee865d9
commit
4ad4385f66
4 changed files with 14 additions and 12 deletions
|
@ -27,17 +27,17 @@
|
|||
</tr>
|
||||
{% for community in communities.items %}
|
||||
<tr>
|
||||
<td>{{ community.name }}</td>
|
||||
<td><img src="{{ community.icon_image('tiny') }}" class="community_icon rounded-circle" loading="lazy" />
|
||||
{{ community.display_name() }}{% if community.banned %} (banned){% endif %}</td>
|
||||
<td><a href="/c/{{ community.link() }}">{{ community.name }}</a></td>
|
||||
<td><a href="/c/{{ community.link() }}">
|
||||
<img src="{{ community.icon_image('tiny') }}" class="community_icon rounded-circle" loading="lazy" />
|
||||
{{ community.display_name() }}{% if community.banned %} (banned){% endif %}</a></td>
|
||||
<td>{{ community.topic.name }}</td>
|
||||
<td>{{ community.post_count }}</td>
|
||||
<th>{{ '✓'|safe if community.show_home 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.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> |
|
||||
<td><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>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
{% block app_content %}
|
||||
{% macro render_topic(topic, depth) %}
|
||||
<tr>
|
||||
<td nowrap="nowrap">{{ '--' * depth }} {{ topic['topic'].name }}</td>
|
||||
<td nowrap="nowrap">{{ '--' * depth }} <a href="/topic/{{ topic['topic'].path() }}">{{ topic['topic'].name }}</a></td>
|
||||
<td>{{ topic['topic'].num_communities }}</td>
|
||||
<td><a href="{{ url_for('admin.admin_topic_edit', topic_id=topic['topic'].id) }}">Edit</a> |
|
||||
{% if topic['topic'].num_communities == 0 %}
|
||||
|
|
|
@ -32,9 +32,10 @@
|
|||
</tr>
|
||||
{% for user in users.items %}
|
||||
<tr>
|
||||
<td><img src="{{ user.avatar_thumbnail() }}" class="community_icon rounded-circle" loading="lazy" />
|
||||
{{ user.display_name() }}</td>
|
||||
<td>{{ 'Local' if user.is_local() else 'Remote' }}</td>
|
||||
<td><a href="/u/{{ user.link() }}">
|
||||
<img src="{{ user.avatar_thumbnail() }}" class="community_icon rounded-circle" loading="lazy" />
|
||||
{{ user.display_name() }}</a></td>
|
||||
<td>{% if user.is_local() %}Local{% else %}<a href="{{ user.ap_profile_id }}">Remote</a>{% endif %}</td>
|
||||
<td>{% if request.args.get('local_remote', '') == 'local' %}
|
||||
{{ moment(user.last_seen).fromNow() }}
|
||||
{% else %}
|
||||
|
|
|
@ -34,9 +34,10 @@
|
|||
</tr>
|
||||
{% for user in users.items %}
|
||||
<tr>
|
||||
<td><img src="{{ user.avatar_thumbnail() }}" class="community_icon rounded-circle" loading="lazy" />
|
||||
{{ user.display_name() }}</td>
|
||||
<td>{{ 'Local' if user.is_local() else 'Remote' }}</td>
|
||||
<td><a href="/u/{{ user.link() }}">
|
||||
<img src="{{ user.avatar_thumbnail() }}" class="community_icon rounded-circle" loading="lazy" />
|
||||
{{ user.display_name() }}</a></td>
|
||||
<td>{% if user.is_local() %}Local{% else %}<a href="{{ user.ap_profile_id }}">Remote</a>{% endif %}</td>
|
||||
<td>{% if request.args.get('local_remote', '') == 'local' %}
|
||||
{{ moment(user.last_seen).fromNow() }}
|
||||
{% else %}
|
||||
|
|
Loading…
Add table
Reference in a new issue