Show 'No tags applied' on workouts when...
This commit is contained in:
@@ -1,10 +1,17 @@
|
|||||||
|
{% if tags|length == 0 %}
|
||||||
{% for tag in tags %}
|
{% for tag in tags %}
|
||||||
{% if tag.is_selected %}
|
{% if tag.is_selected %}
|
||||||
<span
|
<span
|
||||||
class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded text-pink-600 bg-pink-200 uppercase last:mr-0 mr-1 max-h-fit cursor-pointer"
|
class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded text-pink-600 bg-pink-200 uppercase last:mr-0 mr-1 max-h-fit cursor-pointer"
|
||||||
hx-get="{{ url_for('goto_tag') }}" hx-vals='{"filter": "{{ tag.tag_filter }}", "person_id": "{{ tag.person_id }}"}'
|
hx-get="{{ url_for('goto_tag') }}" hx-vals='{"filter": "{{ tag.tag_filter }}", "person_id": "{{ tag.person_id }}"}'
|
||||||
hx-target="#container" hx-push-url="true">{{
|
hx-target="#container" hx-push-url="true">
|
||||||
tag.tag_name }}
|
{{ tag.tag_name }}
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
<span
|
||||||
|
class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded text-gray-400 bg-gray-200 last:mr-0 mr-1 max-h-fit">
|
||||||
|
No tags available
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor%}
|
|
||||||
Reference in New Issue
Block a user