mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
68 lines
2.5 KiB
HTML
68 lines
2.5 KiB
HTML
<pngx-page-header title="Dashboard" [subTitle]="subtitle" i18n-title tourAnchor="tour.dashboard">
|
|
<pngx-logo extra_classes="d-none d-md-block mt-n2" height="3.5rem"></pngx-logo>
|
|
</pngx-page-header>
|
|
|
|
<div class="row">
|
|
<div class="col-12 col-lg-8 col-xl-9 mb-4">
|
|
<div class="row row-cols-1 g-4"
|
|
cdkDropList
|
|
[cdkDropListDisabled]="settingsService.globalDropzoneActive"
|
|
(cdkDropListDropped)="onDrop($event)"
|
|
>
|
|
@if (savedViewService.loading) {
|
|
<div class="col">
|
|
<div class="card shadow-sm bg-light">
|
|
<div class="card-header">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<div class="d-flex">
|
|
<div class="ms-n2 me-1">
|
|
<i-bs name="grip-vertical"></i-bs>
|
|
</div>
|
|
<h6 class="card-title mb-0"></h6>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body"> </div>
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
@if (settingsService.offerTour()) {
|
|
<div class="col">
|
|
<pngx-welcome-widget (dismiss)="completeTour()"></pngx-welcome-widget>
|
|
</div>
|
|
}
|
|
|
|
<ng-container *pngxIfPermissions="{ action: PermissionAction.View, type: PermissionType.SavedView }">
|
|
@if (!settingsService.offerTour() && savedViewService.allViews.length === 0) {
|
|
<div class="col">
|
|
<div class="card shadow-sm bg-light opacity-50">
|
|
<div class="card-body">
|
|
<div class="text-center">
|
|
<p class="mb-0 fst-italic"><i-bs name="info-circle" class="me-2"></i-bs><ng-container i18n>Hint: saved views can be created from the <a routerLink="/documents">documents list</a></ng-container></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
@for (v of dashboardViews; track v.id) {
|
|
<div class="col">
|
|
<pngx-saved-view-widget
|
|
[savedView]="v"
|
|
(cdkDragStarted)="onDragStart($event)"
|
|
(cdkDragEnded)="onDragEnd($event)"
|
|
>
|
|
</pngx-saved-view-widget>
|
|
</div>
|
|
}
|
|
</ng-container>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-4 col-xl-3 col-sidebar">
|
|
<div class="row row-cols-1 g-4 mb-4 sticky-lg-top z-0">
|
|
<pngx-upload-file-widget></pngx-upload-file-widget>
|
|
<pngx-statistics-widget *pngxIfPermissions="{ action: PermissionAction.View, type: PermissionType.UISettings }"></pngx-statistics-widget>
|
|
</div>
|
|
</div>
|
|
</div>
|