1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-14 11:23:17 +02:00
pigallery2/frontend/app/language/language.component.html
2018-01-07 16:22:41 -05:00

23 lines
670 B
HTML

<div class="dropdown" dropdown>
<button dropdownToggle
class="btn btn-default dropdown-toggle"
type="button"
id="language"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="true"
[ngClass]="isDark?'dark':''">
<ng-container *ngIf="current != null">
{{current}}
</ng-container>
<span *ngIf="current == null" class="glyphicon glyphicon-globe">
</span>
<span class="caret"></span>
</button>
<ul *dropdownMenu class="dropdown-menu" aria-labelledby="language">
<li *ngFor="let lang of languages">
<a href="/{{lang}}">{{lang}}</a>
</li>
</ul>
</div>