1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00

fix(tags): three tags and "…" on the host's VM list too

The host's VM list showed every tag of a VM, widening its Name column as
the VM list did before; it now shows three and the others behind "…".
There its tags are not buttons: the tags "…" shows take the focus, so a
keyboard user is not sent back to the top of the page.
This commit is contained in:
catborise 2026-11-19 08:29:40 +03:00
parent 65b8110464
commit 6680e14ce4
5 changed files with 22 additions and 5 deletions

View file

@ -65,7 +65,7 @@
<a class="link-primary" href="{% url 'instances:instance' instance.id %}">{{ instance.name }}</a>
<br>
{% if instance.info %}<p class="m-0 small fst-italic">{{ instance.title }}</p>{% endif %}
{% include 'common/tag_badges.html' with tags=instance.tags.all %}
{% with tags=instance.tags.all %}{% include 'common/tag_badges.html' with tags=tags|slice:":3" more=tags|slice:"3:" %}{% endwith %}
</td>
<td>
<em>