Bulk edit tags

This commit is contained in:
Bad Manners 2025-04-20 10:23:51 -03:00
parent 8fac396d7e
commit 94269d82f0
8 changed files with 252 additions and 24 deletions

View file

@ -100,7 +100,11 @@
<ul>
{% for tag in tags %}
<li>
<a href="/posts?tags={{ tag.name }}">{{ tag.name }}</a>
{% if let Some(tags_text) = tags_text %}
<a href="/posts?tags={{ tags_text.replace(' ', "+") }}+{{ tag.name }}">+</a> <a href="/posts?tags={{ tags_text.replace(' ', "+") }}+-{{ tag.name }}">-</a> <a href="/posts?tags={{ tag.name }}">{{ tag.name }}</a>
{% else %}
<a href="/posts?tags={{ tag.name }}">+</a> <a href="/posts?tags=-{{ tag.name }}">-</a> <a href="/posts?tags={{ tag.name }}">{{ tag.name }}</a>
{% endif %}
</li>
{% endfor %}
</ul>