Queerscriptors.org/templates/lang-selector.html

16 lines
533 B
HTML
Raw Normal View History

2022-10-30 17:37:07 +00:00
{% set alts = get_alts() %}
<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 17:51:24 +00:00
{{ this.alt }}
2022-10-30 17:37:07 +00:00
</button>
<div class="dropdown-menu">
{% for alt in alts %}
{% if this.alt != alt %}
2022-10-30 17:51:24 +00:00
{% for thing in alt %}
<a class="dropdown-item" href="{{ this.path|url(alt=alt) }}">{{ thing }}</a>
2022-10-30 17:52:29 +00:00
{% endfor %}
2022-10-30 17:37:07 +00:00
{% endif %}
{% endfor %}
</div>
</div>