takahe/templates/admin/hashtags.html

53 wiersze
2.1 KiB
HTML
Czysty Zwykły widok Historia

2022-11-29 04:41:36 +00:00
{% extends "settings/base.html" %}
{% block subtitle %}Hashtags{% endblock %}
{% block content %}
<section class="icon-menu">
2022-12-20 09:16:03 +00:00
{% for hashtag in page_obj %}
<a class="option hashtags" href="{{ hashtag.urls.admin_edit }}">
2023-01-09 16:58:17 +00:00
<div class="tag">
<i class="fa-solid fa-hashtag"></i>
<span class="handle">
{{ hashtag.display_name }}
<small>
{% if hashtag.public %}Public{% elif hashtag.public is None %}Unreviewed{% else %}Private{% endif %}
</small>
</span>
</div>
2023-01-09 16:58:17 +00:00
{% if hashtag.stats %}
<div class="count">
<span class="handle">
{{ hashtag.stats.total }}
<small>Total</small>
</span>
</div>
{% endif %}
{% if hashtag.aliases %}
<div class="count">
<span class="handle">
{% for alias in hashtag.aliases %}
{{ alias }}{% if not forloop.last %}, {% endif %}
{% endfor %}
<small>Aliases</small>
</span>
</div>
{% endif %}
2022-11-29 04:41:36 +00:00
</a>
{% empty %}
2022-12-20 09:16:03 +00:00
<p class="option empty">There are no hashtags yet.</p>
2022-11-29 04:41:36 +00:00
{% endfor %}
<div class="pagination">
2022-12-20 09:16:03 +00:00
{% if page_obj.has_previous %}
<a class="button" href=".?page={{ page_obj.previous_page_number }}">Previous Page</a>
{% endif %}
{% if page_obj.paginator.count %}
<span class="count">{{ page_obj.paginator.count }} hashtag{{page_obj.paginator.count|pluralize }}</span>
{% endif %}
2022-12-20 09:16:03 +00:00
{% if page_obj.has_next %}
<a class="button" href=".?page={{ page_obj.next_page_number }}">Next Page</a>
{% endif %}
</div>
2022-11-29 04:41:36 +00:00
</section>
{% endblock %}