fix tag edit
This commit is contained in:
parent
bda4833893
commit
d87e156919
4 changed files with 4 additions and 4 deletions
|
@ -52,7 +52,7 @@
|
||||||
{% for tag in item.tags %}
|
{% for tag in item.tags %}
|
||||||
{% if forloop.counter <= 5 %}
|
{% if forloop.counter <= 5 %}
|
||||||
<span>
|
<span>
|
||||||
<a href="{% url 'common:search' %}?tag={{ tag }}">{{ tag }}</a>
|
<a href="{% url 'common:search' %}?tag={{ tag|urlencode }}">{{ tag }}</a>
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -191,7 +191,7 @@
|
||||||
<div class="tag-list solo-hidden">
|
<div class="tag-list solo-hidden">
|
||||||
{% for tag in item.tags %}
|
{% for tag in item.tags %}
|
||||||
<span>
|
<span>
|
||||||
<a href="{% url 'common:search' %}?tag={{ tag }}">{{ tag }}</a>
|
<a href="{% url 'common:search' %}?tag={{ tag|urlencode }}">{{ tag }}</a>
|
||||||
</span>
|
</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<strong>{% trans 'Edit' %} {{ tag.title }}</strong>
|
<strong>{% trans 'Edit' %} {{ tag.title }}</strong>
|
||||||
</header>
|
</header>
|
||||||
<div>
|
<div>
|
||||||
<form action="{% url 'journal:user_tag_edit' %}?tag={{ tag.title }}"
|
<form action="{% url 'journal:user_tag_edit' %}?tag={{ tag.title|urlencode }}"
|
||||||
method="post">
|
method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="id" value="{{ tag.id }}">
|
<input type="hidden" name="id" value="{{ tag.id }}">
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if identity.user == request.user %}
|
{% if identity.user == request.user %}
|
||||||
<span>
|
<span>
|
||||||
<a hx-get="{% url 'journal:user_tag_edit' %}?tag={{ tag.title }}"
|
<a hx-get="{% url 'journal:user_tag_edit' %}?tag={{ tag.title|urlencode }}"
|
||||||
hx-target="body"
|
hx-target="body"
|
||||||
hx-swap="beforeend">
|
hx-swap="beforeend">
|
||||||
<i class="fa-regular fa-pen-to-square"></i>
|
<i class="fa-regular fa-pen-to-square"></i>
|
||||||
|
|
Loading…
Add table
Reference in a new issue