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

61 lines
2.8 KiB
HTML
Raw Normal View History

<app-frame>
2017-07-09 20:23:50 +08:00
<div body class="container">
2018-05-14 04:59:57 +08:00
<div class="card mb-4" *ngIf="notificationService.notifications.length>0">
<h5 class="card-header" i18n>
Server notifications
</h5>
<div class="card-body">
2017-07-09 20:23:50 +08:00
<ng-container *ngFor="let notification of notificationService.notifications">
2017-07-14 15:28:52 +08:00
<div class="alert alert-{{getCss(notification.type)}}" role="alert">
2017-07-09 20:23:50 +08:00
{{notification.message}}
<br *ngIf="notification.details"/>
{{notification.details | json}}
</div>
</ng-container>
</div>
2018-05-14 04:59:57 +08:00
<div class="card-footer" i18n>
2017-07-09 20:23:50 +08:00
To dismiss these notifications, restart the server.
</div>
2016-05-01 16:28:05 +08:00
</div>
2017-07-15 23:29:40 +08:00
<div class="form-horizontal">
2018-05-14 04:59:57 +08:00
<div class="form-group d-flex justify-content-end">
<label class="control-label align-self-end mr-2" for="simplifiedMode" i18n>Mode</label>
<bSwitch
id="simplifiedMode"
class="switch"
name="simplifiedMode"
[switch-off-color]="'warning'"
[switch-on-color]="'primary'"
[switch-inverse]="'inverse'"
[switch-off-text]="text.Advanced"
[switch-on-text]="text.Simplified"
[switch-handle-width]="'100'"
[switch-label-width]="'20'"
[(ngModel)]="simplifiedMode">
</bSwitch>
2017-07-15 23:29:40 +08:00
</div>
</div>
2018-05-04 07:17:08 +08:00
<app-settings-basic [simplifiedMode]="simplifiedMode"></app-settings-basic>
<app-settings-usermanager></app-settings-usermanager>
<app-settings-database [simplifiedMode]="simplifiedMode"></app-settings-database>
<app-settings-thumbnail #thumbnail [hidden]="!thumbnail.hasAvailableSettings"
[simplifiedMode]="simplifiedMode"></app-settings-thumbnail>
2018-11-19 03:26:29 +08:00
<app-settings-video #video [hidden]="!video.hasAvailableSettings"
[simplifiedMode]="simplifiedMode"></app-settings-video>
2018-05-04 07:17:08 +08:00
<app-settings-search #search [hidden]="!search.hasAvailableSettings"
[simplifiedMode]="simplifiedMode"></app-settings-search>
<app-settings-share #share [hidden]="!share.hasAvailableSettings"
[simplifiedMode]="simplifiedMode"></app-settings-share>
<app-settings-map #map [hidden]="!map.hasAvailableSettings" [simplifiedMode]="simplifiedMode"></app-settings-map>
<app-settings-random-photo #random [hidden]="!random.hasAvailableSettings"
2018-11-19 03:26:29 +08:00
[simplifiedMode]="simplifiedMode"></app-settings-random-photo>
2018-05-04 07:17:08 +08:00
<app-settings-other #other [hidden]="!other.hasAvailableSettings"
[simplifiedMode]="simplifiedMode"></app-settings-other>
2018-05-29 02:03:12 +08:00
<app-settings-indexing #indexing [hidden]="!indexing.hasAvailableSettings"
2018-05-04 07:17:08 +08:00
[simplifiedMode]="simplifiedMode"></app-settings-indexing>
2017-07-09 20:23:50 +08:00
</div>
</app-frame>