Back to Paperless Ngx

Statistics Widget.Component

src-ui/src/app/components/dashboard/widgets/statistics-widget/statistics-widget.component.html

2.20.151.3 KB
Original Source

@if (loading) {

} @else { @if (statistics?.documents_inbox !== null) { Documents in inbox: 0" [class.bg-muted]="statistics?.documents_inbox === 0">{{statistics?.documents_inbox}} } Total documents: {{statistics?.documents_total}} Total characters: {{statistics?.character_count | number}} @if (statistics?.current_asn) { Current ASN: {{statistics?.current_asn}} } } @if (statistics?.document_file_type_counts?.length > 1) {

@for (filetype of statistics?.document_file_type_counts; track filetype; let i = $index; let last = $last) {

}

@for (filetype of statistics?.document_file_type_counts; track filetype; let i = $index) {

{{ getFileTypeExtension(filetype) }} ({{getFileTypePercent(filetype) | number: '1.0-1'}}%)

}

}

@if (loading) {

} @if (statistics?.tag_count > 0) { Tags: {{statistics?.tag_count | number}} } @if (loading) {

} @if (statistics?.correspondent_count > 0) { Correspondents: {{statistics?.correspondent_count | number}} } @if (loading) {

} @if (statistics?.document_type_count > 0) { Document Types: {{statistics?.document_type_count | number}} } @if (loading) {

} @if (statistics?.storage_path_count > 0) { Storage Paths: {{statistics?.storage_path_count | number}} }