|
1 | 1 | <div class="container"> |
2 | | - <div class="d-flex"> |
3 | | - <h2 class="flex-grow-1">{{'audit.object.overview.title' | translate}}</h2> |
4 | | - </div> |
| 2 | + <div class="d-flex"> |
| 3 | + <h2 class="flex-grow-1">{{ 'audit.object.overview.title' | translate }}</h2> |
| 4 | + </div> |
5 | 5 |
|
6 | | - <ng-container *ngIf="object"> |
7 | | - <h4 class="mt-4 mb-4">{{ object.name }} (<em>{{object.type}}</em>)</h4> |
| 6 | + <ng-container *ngIf="object"> |
| 7 | + <h4 class="mt-4 mb-4">{{ object.name }} (<em>{{ object.type }}</em>)</h4> |
8 | 8 |
|
9 | | - <ng-container *ngIf="(auditsRD$ | async)?.payload as audits"> |
| 9 | + <ng-container *ngIf="(auditsRD$ | async)?.payload as audits"> |
10 | 10 |
|
11 | | - <div *ngIf="audits.totalElements === 0"> |
12 | | - No audits found. |
13 | | - </div> |
14 | | - |
15 | | - <ds-pagination *ngIf="audits.totalElements > 0" |
16 | | - [paginationOptions]="pageConfig" |
17 | | - [collectionSize]="audits.totalElements" |
18 | | - [hideGear]="true" |
19 | | - [hidePagerWhenSinglePage]="true"> |
| 11 | + <div *ngIf="audits.totalElements === 0"> |
| 12 | + No audits found. |
| 13 | + </div> |
20 | 14 |
|
21 | | - <div class="table-responsive"> |
22 | | - <table class="table table-striped table-hover"> |
23 | | - <thead> |
24 | | - <tr> |
25 | | - <!-- <th>{{ 'audit.overview.table.id' | translate }}</th> --> |
26 | | - <th>{{ 'audit.overview.table.entityType' | translate }}</th> |
27 | | - <th>{{ 'audit.overview.table.eperson' | translate }}</th> |
28 | | - <th>{{ 'audit.overview.table.timestamp' | translate }}</th> |
29 | | - <th>Other Object</th> |
30 | | - </tr> |
31 | | - </thead> |
32 | | - <tbody> |
33 | | - <tr *ngFor="let audit of audits.page"> |
34 | | - <!-- <td><a [routerLink]="['/auditlogs/', audit.id]">{{audit.id}}</a></td> --> |
35 | | - <td>{{ audit.eventType }}</td> |
36 | | - <td *ngVar="(getEpersonName(audit) | async) as ePersonName">{{ePersonName}}</td> |
37 | | - <td>{{ audit.timeStamp | date:dateFormat}}</td> |
38 | | - <td> |
39 | | - <span *ngIf="object.id === audit.objectUUID"> |
40 | | - <!-- object.id === audit.objectUUID --> |
41 | | - <ng-container *ngIf="(getOtherObject(audit, object.id) | async) as subject"> |
42 | | - <ng-container *ngIf="subject"> |
43 | | - {{ subject.name }} <em>({{ subject.type }})</em> |
44 | | - </ng-container> |
45 | | - </ng-container> |
46 | | - </span> |
| 15 | + <ds-pagination *ngIf="audits.totalElements > 0" |
| 16 | + [paginationOptions]="pageConfig" |
| 17 | + [collectionSize]="audits.totalElements" |
| 18 | + [hideGear]="true" |
| 19 | + [hidePagerWhenSinglePage]="true"> |
47 | 20 |
|
48 | | - <span *ngIf="object.id === audit.subjectUUID"> |
49 | | - <!-- object.id === audit.subjectUUID --> |
50 | | - </span> |
51 | | - </td> |
52 | | - </tr> |
53 | | - </tbody> |
54 | | - </table> |
55 | | - </div> |
56 | | - </ds-pagination> |
| 21 | + <div class="table-responsive"> |
| 22 | + <table class="table table-striped table-hover"> |
| 23 | + <thead> |
| 24 | + <tr> |
| 25 | + <!-- <th>{{ 'audit.overview.table.id' | translate }}</th> --> |
| 26 | + <th>{{ 'audit.overview.table.entityType' | translate }}</th> |
| 27 | + <th>{{ 'audit.overview.table.eperson' | translate }}</th> |
| 28 | + <th>{{ 'audit.overview.table.timestamp' | translate }}</th> |
| 29 | + <th>Other Object</th> |
| 30 | + </tr> |
| 31 | + </thead> |
| 32 | + <tbody> |
| 33 | + <tr *ngFor="let audit of audits?.page; trackBy: trackById"> |
| 34 | + <!-- <td><a [routerLink]="['/auditlogs/', audit.id]">{{audit.id}}</a></td> --> |
| 35 | + <td>{{ audit.eventType }}</td> |
| 36 | + <td> |
| 37 | + <span *ngIf="(audit.epersonName | async) as epersonName; else noEperson">{{epersonName}}</span> |
| 38 | + <ng-template #noEperson><em>{{ 'audit.overview.table.eperson.anonymous' | translate }}</em></ng-template> |
| 39 | + </td> |
| 40 | + <td>{{ audit.timeStamp | date:dateFormat }}</td> |
| 41 | + <td> |
| 42 | + <span *ngIf="object.id === audit.objectUUID"> |
| 43 | + <!-- object.id === audit.objectUUID --> |
| 44 | + <ng-container *ngIf="(audit.subject | async) as subject"> |
| 45 | + {{ subject.name }} <em>({{ subject.type }})</em> |
| 46 | + </ng-container> |
| 47 | + </span> |
| 48 | + <span *ngIf="object.id === audit.subjectUUID"> |
| 49 | + <!-- object.id === audit.subjectUUID --> |
| 50 | + </span> |
| 51 | + </td> |
| 52 | + </tr> |
| 53 | + </tbody> |
| 54 | + </table> |
| 55 | + </div> |
| 56 | + </ds-pagination> |
57 | 57 |
|
58 | | - <a class="btn btn-light mt-3" [routerLink]="['/items', object.id]"><i class="fas fa-arrow-left"></i> Back to Item</a> |
| 58 | + <a class="btn btn-light mt-3" [routerLink]="['/items', object.id]"><i class="fas fa-arrow-left"></i> Back to Item</a> |
59 | 59 |
|
60 | | - <!-- <a class="btn btn-light mt-3" [routerLink]="'/auditlogs'">{{'audit.detail.back' | translate}}</a> --> |
| 60 | + <!-- <a class="btn btn-light mt-3" [routerLink]="'/auditlogs'">{{'audit.detail.back' | translate}}</a> --> |
61 | 61 |
|
62 | | - </ng-container> |
| 62 | + </ng-container> |
63 | 63 |
|
64 | | - <h4 class="mt-4 mb-4" *ngIf="(auditsRD$ | async)?.statusCode === 404">{{'audit.object.overview.disabled.message' | translate}}</h4> |
| 64 | + <h4 class="mt-4 mb-4" |
| 65 | + *ngIf="(auditsRD$ | async)?.statusCode === 404">{{ 'audit.object.overview.disabled.message' | translate }}</h4> |
65 | 66 |
|
66 | | - </ng-container> |
| 67 | + </ng-container> |
67 | 68 |
|
68 | 69 | </div> |
0 commit comments