Queerscriptors.org/templates/lang-selector.html

14 lines
569 B
HTML
Raw Normal View History

2022-10-30 18:34:19 +00:00
{% set alts = bag('alternatives').items() %}
<div class="btn-group dropdown pull-right">
<button type="button" class="btn btn-dark bg-dark dropdown-toggle btn-block my-3 my-sm-0" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
2022-10-30 18:34:19 +00:00
{{ bag('alternatives', this.alt, 'language') }}
</button>
<div class="dropdown-menu">
2022-10-30 18:34:19 +00:00
{% for id, item in bag('alternatives').items() %}
{% if this.alt != id %}
<a class="dropdown-item" href="{{ this.path|url(alt=id) }}">{{ item.language }}</a>
{% endif %}
{% endfor %}
</div>
2022-10-30 17:37:07 +00:00
</div>