1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-16 11:37:13 +02:00
pigallery2/frontend/app/language/language.component.html
2018-05-13 16:59:57 -04:00

20 lines
623 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="oi oi-globe"></span>
</button>
<div *dropdownMenu class="dropdown-menu" aria-labelledby="language">
<a *ngFor="let lang of languages" class="dropdown-item" href="/{{lang}}">{{lang}}</a>
</div>
</div>