diff options
author | Michael Manfre | 2022-11-28 23:41:36 -0500 |
---|---|---|
committer | GitHub | 2022-11-28 21:41:36 -0700 |
commit | fb8f2d10984bcfa2585dc272b4c85d285b722792 (patch) | |
tree | fa9616f745c7e9e4b5cc5d1ca82d61512ee64f01 /templates/admin/hashtags.html | |
parent | 7f838433edde6a03d1b7f71da269f9756a3f91e9 (diff) | |
download | takahe-fb8f2d10984bcfa2585dc272b4c85d285b722792.tar.gz takahe-fb8f2d10984bcfa2585dc272b4c85d285b722792.tar.bz2 takahe-fb8f2d10984bcfa2585dc272b4c85d285b722792.zip |
Hashtags
Diffstat (limited to 'templates/admin/hashtags.html')
-rw-r--r-- | templates/admin/hashtags.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/templates/admin/hashtags.html b/templates/admin/hashtags.html new file mode 100644 index 0000000..4273ac2 --- /dev/null +++ b/templates/admin/hashtags.html @@ -0,0 +1,40 @@ +{% extends "settings/base.html" %} + +{% block subtitle %}Hashtags{% endblock %} + +{% block content %} + <section class="icon-menu"> + {% for hashtag in hashtags %} + <a class="option" href="{{ hashtag.urls.edit }}"> + <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> + {% if hashtag.stats %} + <span class="handle"> + <small>Total:</small> + {{ hashtag.stats.total }} + </span> + {% endif %} + {% if hashtag.aliases %} + + <span class="handle"> + <small>Aliases:</small> + {% for alias in hashtag.aliases %} + {{ alias }}{% if not forloop.last %}, {% endif %} + {% endfor %} + </span> + {% endif %} + + </a> + {% empty %} + <p class="option empty">You have no hashtags set up.</p> + {% endfor %} + <a href="{% url "admin_hashtags_create" %}" class="option new"> + <i class="fa-solid fa-plus"></i> Add a hashtag + </a> + </section> +{% endblock %} |