2023-05-04 04:42:37 +00:00
|
|
|
{% extends "admin/base_main.html" %}
|
2022-11-29 04:41:36 +00:00
|
|
|
|
|
|
|
{% block subtitle %}Hashtags{% endblock %}
|
|
|
|
|
2023-05-04 04:42:37 +00:00
|
|
|
{% block settings_content %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<table class="items">
|
2022-12-20 09:16:03 +00:00
|
|
|
{% for hashtag in page_obj %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<tr>
|
|
|
|
<td class="icon">
|
2023-06-14 17:15:29 +00:00
|
|
|
<a href="{{ hashtag.urls.admin_edit }}?page={{ page_obj.number }}" class="overlay"></a>
|
2023-01-09 16:58:17 +00:00
|
|
|
<i class="fa-solid fa-hashtag"></i>
|
2023-01-11 03:31:50 +00:00
|
|
|
</td>
|
|
|
|
<td class="name">
|
2023-06-14 17:15:29 +00:00
|
|
|
<a href="{{ hashtag.urls.admin_edit }}?page={{ page_obj.number }}" class="overlay"></a>
|
2023-01-11 03:31:50 +00:00
|
|
|
{{ hashtag.display_name }}
|
|
|
|
<small>{% if hashtag.public %}Public{% elif hashtag.public is None %}Unreviewed{% else %}Private{% endif %}</small>
|
|
|
|
</td>
|
|
|
|
<td class="stat">
|
|
|
|
{% if hashtag.stats %}
|
|
|
|
{{ hashtag.stats.total }}
|
|
|
|
<small>post{{ hashtag.stats.total|pluralize }}</small>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td class="stat">
|
|
|
|
{% if hashtag.aliases %}
|
|
|
|
{% for alias in hashtag.aliases %}
|
|
|
|
{{ alias }}{% if not forloop.last %}, {% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
<small>Aliases</small>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td class="actions">
|
|
|
|
{% if hashtag.public is not True %}
|
|
|
|
<a hx-post="{{ hashtag.urls.admin_enable }}" title="Make Public"><i class="fa-solid fa-circle-check"></i></a>
|
|
|
|
{% endif %}
|
|
|
|
{% if hashtag.public is not False %}
|
|
|
|
<a hx-post="{{ hashtag.urls.admin_disable }}" title="Make Private"><i class="fa-solid fa-circle-xmark"></i></a>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-11-29 04:41:36 +00:00
|
|
|
{% empty %}
|
2023-01-11 03:31:50 +00:00
|
|
|
<tr class="empty">
|
|
|
|
<td>
|
|
|
|
{% if query %}
|
|
|
|
No hashtags match your query.
|
|
|
|
{% else %}
|
|
|
|
There are no hashtags yet.
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-11-29 04:41:36 +00:00
|
|
|
{% endfor %}
|
2023-01-11 03:31:50 +00:00
|
|
|
</table>
|
2023-01-13 22:54:21 +00:00
|
|
|
{% include "admin/_pagination.html" with nouns="hashtag,hashtags" %}
|
2022-11-29 04:41:36 +00:00
|
|
|
{% endblock %}
|