1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/language/language.component.html

20 lines
623 B
HTML
Raw Normal View History

<div class="dropdown" dropdown>
<button dropdownToggle
class="btn btn-default dropdown-toggle"
type="button"
id="language"
data-toggle="dropdown"
aria-haspopup="true"
2018-01-08 05:22:41 +08:00
aria-expanded="true"
[ngClass]="isDark?'dark':''">
<ng-container *ngIf="current != null">
{{current}}
</ng-container>
2018-05-14 04:59:57 +08:00
<span *ngIf="current == null" class="oi oi-globe"></span>
</button>
2018-05-14 04:59:57 +08:00
<div *dropdownMenu class="dropdown-menu" aria-labelledby="language">
<a *ngFor="let lang of languages" class="dropdown-item" href="/{{lang}}">{{lang}}</a>
</div>
</div>