parent
7201ebbf5f
commit
2cb2610d24
|
@ -1,16 +1,13 @@
|
||||||
{% set alts = get_alts() %}
|
{% set alts = get_alts() %}
|
||||||
<div class="pull-right">
|
<div class="btn-group dropdown pull-right">
|
||||||
<li class="dropdown">
|
<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">
|
||||||
<a href="#" data-toggle="dropdown" class="dropdown-toggle">{{ this.alt }} <b class="caret"></b></a>
|
{{ this.alt }}
|
||||||
<ul class="dropdown-menu">
|
</button>
|
||||||
|
<div class="dropdown-menu">
|
||||||
{% for alt in alts %}
|
{% for alt in alts %}
|
||||||
{% if this.alt != alt %}
|
{% if this.alt != alt %}
|
||||||
<li><a href="{{ this.path|url(alt=alt) }}">{{ alt }}</a></li>
|
<a class="dropdown-item" href="{{ this.path|url(alt=alt) }}">{{ alt }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<li><a href="#">Something else here</a></li>
|
</div>
|
||||||
<li class="divider"></li>
|
|
||||||
<li><a href="#">Separated link</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue