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

73 lines
3.0 KiB
HTML
Raw Normal View History

<app-gallery-lightbox #lightbox></app-gallery-lightbox>
<app-frame>
2017-07-08 04:54:18 +08:00
<ng-container navbar>
2018-05-14 04:59:57 +08:00
<li class="nav-item" *ngIf="countDown">
<span class="navbar-text">
<ng-container i18n>Link availability</ng-container>
: {{countDown.day}}
<ng-container i18n>days</ng-container>
,
{{("0" + countDown.hour).slice(-2)}}:{{("0" + countDown.minute).slice(-2)}}
:{{("0" + countDown.second).slice(-2)}}
2018-05-14 04:59:57 +08:00
</span>
2017-07-09 18:03:17 +08:00
</li>
2018-05-14 04:59:57 +08:00
<li class="nav-item" *ngIf="showSearchBar">
<app-gallery-search></app-gallery-search>
2017-07-08 04:54:18 +08:00
</li>
2018-05-14 04:59:57 +08:00
<li class="nav-item" *ngIf="showShare">
2018-05-04 07:17:08 +08:00
<app-gallery-share></app-gallery-share>
2017-07-08 04:54:18 +08:00
</li>
</ng-container>
<ng-container navbar-menu>
<li role="menuitem" *ngIf="showRandomPhotoBuilder">
<app-gallery-random-query-builder></app-gallery-random-query-builder>
</li>
</ng-container>
2017-07-21 03:06:48 +08:00
2018-05-14 04:59:57 +08:00
<div body class="container-fluid" style="width: 100%; padding:0" *ngIf="_galleryService.content.value.directory">
2018-05-04 07:17:08 +08:00
<app-gallery-navbar [directory]="_galleryService.content.value.directory"></app-gallery-navbar>
2017-01-24 04:29:07 +08:00
2017-07-08 06:18:24 +08:00
<div class="directories">
2018-05-04 07:17:08 +08:00
<app-gallery-directory *ngFor="let directory of directories"
[directory]="directory"></app-gallery-directory>
2017-07-08 06:18:24 +08:00
</div>
2018-05-04 07:17:08 +08:00
<app-gallery-map *ngIf="isPhotoWithLocation && mapEnabled"
2018-11-26 07:26:29 +08:00
[photos]="_galleryService.content.value.directory.media"
[metaFiles]="_galleryService.content.value.directory.metaFile"></app-gallery-map>
<app-gallery-grid [media]="_galleryService.content.value.directory.media"
2018-05-04 07:17:08 +08:00
[lightbox]="lightbox"></app-gallery-grid>
2017-06-21 17:46:23 +08:00
</div>
2018-12-02 19:22:20 +08:00
<!-- Search-->
2018-05-14 04:59:57 +08:00
<div body class="container-fluid" style="width: 100%; padding:0" *ngIf="_galleryService.content.value.searchResult">
2017-07-26 03:36:28 +08:00
<div class="alert alert-info" role="alert"
*ngIf="_galleryService.content.value.searchResult.resultOverflow == true" i18n>
2017-07-26 03:36:28 +08:00
Too many results to show. Refine your search.
</div>
2018-12-02 19:22:20 +08:00
<app-gallery-navbar [searchResult]="_galleryService.content.value.searchResult"></app-gallery-navbar>
2018-05-04 07:17:08 +08:00
<app-gallery-map *ngIf="isPhotoWithLocation && mapEnabled"
2018-11-26 07:26:29 +08:00
[photos]="_galleryService.content.value.searchResult.media"
[metaFiles]="_galleryService.content.value.searchResult.metaFile"></app-gallery-map>
2017-07-08 06:18:24 +08:00
<div class="directories">
2018-05-04 07:17:08 +08:00
<app-gallery-directory *ngFor="let directory of directories"
[directory]="directory"></app-gallery-directory>
2016-05-01 16:28:05 +08:00
</div>
<app-gallery-grid [media]="_galleryService.content.value.searchResult.media"
2018-05-04 07:17:08 +08:00
[lightbox]="lightbox"></app-gallery-grid>
2017-06-21 17:46:23 +08:00
</div>
2017-07-21 03:06:48 +08:00
<div body class="container"
style="width: 100%; padding:0"
*ngIf="(!_galleryService.content.value.directory ||
2017-07-22 01:14:22 +08:00
_galleryService.content.value.directory.isPartial == true)
2017-07-21 03:06:48 +08:00
&& !_galleryService.content.value.searchResult">
<div class="spinner">
</div>
</div>
2017-06-21 17:33:21 +08:00
</app-frame>