1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-26 11:16:12 +04:00

feat: Add language selector dropdown to navbar (#2526)

This commit is contained in:
Paweł Kuna
2025-11-02 20:49:13 +01:00
committed by GitHub
parent 6e656ad1de
commit 8d8727f587
16 changed files with 238 additions and 96 deletions

View File

@@ -24,7 +24,11 @@
{% endfor %}
{% elsif include.people %}
{% for person in people limit: 5 %}
<a href="#" class="dropdown-item">{% include "ui/avatar.html" person-id=person.id class="rounded me-2" size="xs" %} {{ person.full_name }}</a>
<a href="#" class="dropdown-item">{% include "ui/avatar.html" person-id=person.id size="xs" %} {{ person.full_name }}</a>
{% endfor %}
{% elsif include.flag %}
{% for country in countries limit: 5 %}
<a href="#" class="dropdown-item">{% include "ui/flag.html" flag=country.flag size="xs" %} {{ country.name }}</a>
{% endfor %}
{% elsif include.type == 'text' %}