mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Allow filtering by document metadata
This commit is contained in:
		| @@ -1,2 +1,2 @@ | |||||||
| <span *ngIf="!clickable" class="badge" [style.background]="tag.color" [style.color]="tag.text_color">{{tag.name}}</span> | <span *ngIf="!clickable" class="badge" [style.background]="tag.color" [style.color]="tag.text_color">{{tag.name}}</span> | ||||||
| <a [routerLink]="[]" [title]="linkTitle" *ngIf="clickable" class="badge" [style.background]="tag.color" [style.color]="tag.text_color">{{tag.name}}</a> | <a [title]="linkTitle" *ngIf="clickable" class="badge" [style.background]="tag.color" [style.color]="tag.text_color">{{tag.name}}</a> | ||||||
|   | |||||||
| @@ -0,0 +1,3 @@ | |||||||
|  | a { | ||||||
|  |     cursor: pointer; | ||||||
|  | } | ||||||
|   | |||||||
| @@ -17,7 +17,7 @@ | |||||||
|         <div class="d-flex justify-content-between align-items-center"> |         <div class="d-flex justify-content-between align-items-center"> | ||||||
|           <h5 class="card-title"> |           <h5 class="card-title"> | ||||||
|             <ng-container *ngIf="document.correspondent"> |             <ng-container *ngIf="document.correspondent"> | ||||||
|               <a *ngIf="clickCorrespondent.observers.length ; else nolink" [routerLink]="[]" title="Filter by correspondent" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="fw-bold btn-link">{{(document.correspondent$ | async)?.name}}</a> |               <a *ngIf="clickCorrespondent.observers.length ; else nolink" title="Filter by correspondent" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="fw-bold btn-link">{{(document.correspondent$ | async)?.name}}</a> | ||||||
|               <ng-template #nolink>{{(document.correspondent$ | async)?.name}}</ng-template>: |               <ng-template #nolink>{{(document.correspondent$ | async)?.name}}</ng-template>: | ||||||
|             </ng-container> |             </ng-container> | ||||||
|             {{document.title | documentTitle}} |             {{document.title | documentTitle}} | ||||||
|   | |||||||
| @@ -90,3 +90,7 @@ span ::ng-deep .match { | |||||||
|   color: black; |   color: black; | ||||||
|   background-color: rgb(255, 211, 66); |   background-color: rgb(255, 211, 66); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | a { | ||||||
|  |   cursor: pointer; | ||||||
|  | } | ||||||
|   | |||||||
| @@ -23,7 +23,7 @@ | |||||||
|     <div class="card-body p-2"> |     <div class="card-body p-2"> | ||||||
|       <p class="card-text"> |       <p class="card-text"> | ||||||
|         <ng-container *ngIf="document.correspondent"> |         <ng-container *ngIf="document.correspondent"> | ||||||
|           <a [routerLink]="[]" title="Filter by correspondent" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="fw-bold btn-link">{{(document.correspondent$ | async)?.name}}</a>: |           <a title="Filter by correspondent" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="fw-bold btn-link">{{(document.correspondent$ | async)?.name}}</a>: | ||||||
|         </ng-container> |         </ng-container> | ||||||
|         {{document.title | documentTitle}} |         {{document.title | documentTitle}} | ||||||
|       </p> |       </p> | ||||||
|   | |||||||
| @@ -76,3 +76,7 @@ | |||||||
|   text-align: left !important; |   text-align: left !important; | ||||||
|   font-size: 90%; |   font-size: 90%; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | a { | ||||||
|  |   cursor: pointer; | ||||||
|  | } | ||||||
|   | |||||||
| @@ -163,7 +163,7 @@ | |||||||
|         </td> |         </td> | ||||||
|         <td class="d-none d-md-table-cell"> |         <td class="d-none d-md-table-cell"> | ||||||
|           <ng-container *ngIf="d.correspondent"> |           <ng-container *ngIf="d.correspondent"> | ||||||
|             <a [routerLink]="[]" (click)="clickCorrespondent(d.correspondent);$event.stopPropagation()" title="Filter by correspondent">{{(d.correspondent$ | async)?.name}}</a> |             <a (click)="clickCorrespondent(d.correspondent);$event.stopPropagation()" title="Filter by correspondent">{{(d.correspondent$ | async)?.name}}</a> | ||||||
|           </ng-container> |           </ng-container> | ||||||
|         </td> |         </td> | ||||||
|         <td> |         <td> | ||||||
| @@ -172,7 +172,7 @@ | |||||||
|         </td> |         </td> | ||||||
|         <td class="d-none d-xl-table-cell"> |         <td class="d-none d-xl-table-cell"> | ||||||
|           <ng-container *ngIf="d.document_type"> |           <ng-container *ngIf="d.document_type"> | ||||||
|             <a [routerLink]="[]" (click)="clickDocumentType(d.document_type);$event.stopPropagation()" title="Filter by document type">{{(d.document_type$ | async)?.name}}</a> |             <a (click)="clickDocumentType(d.document_type);$event.stopPropagation()" title="Filter by document type">{{(d.document_type$ | async)?.name}}</a> | ||||||
|           </ng-container> |           </ng-container> | ||||||
|         </td> |         </td> | ||||||
|         <td> |         <td> | ||||||
|   | |||||||
| @@ -53,3 +53,7 @@ $paperless-card-breakpoints: ( | |||||||
|     margin-left: 0; |     margin-left: 0; | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | a { | ||||||
|  |   cursor: pointer; | ||||||
|  | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon