|
3 | 3 | #dt
|
4 | 4 | styleClass="p-datatable-striped"
|
5 | 5 | dataKey="id"
|
6 |
| - breakpoint="500px" |
| 6 | + breakpoint="685px" |
7 | 7 | [rowHover]="true"
|
8 | 8 | [reorderableColumns]="true"
|
9 | 9 | (onRowReorder)="onRowReorder(dt.value)"
|
|
37 | 37 | <button pButton pRipple [disabled]="index === 0" type="button" icon="pi pi-chevron-up" class="p-button-secondary p-button-rounded mr-2" (click)="move(index, -1, dt.value)"></button>
|
38 | 38 | <button pButton pRipple [disabled]="index === dt.value.length - 1" type="button" icon="pi pi-chevron-down" class="p-button-secondary p-button-rounded mr-2" (click)="move(index, 1, dt.value)"></button>
|
39 | 39 | </td>
|
40 |
| - <td [routerLink]="[log.id]">{{ log.title }}</td> |
41 |
| - <td [routerLink]="[log.id]">{{ log.desc }}</td> |
42 |
| - <td [routerLink]="[log.id]" class="flex-wrap"> |
43 |
| - <span [ngClass]="{'p-error': !(log.templateId | templateExists: templates)}" class="text-overflow-anywhere "> |
44 |
| - {{ log.templateId | templateTitle: templates }} |
| 40 | + <td [routerLink]="[log.id]" class="justify-content-between"> |
| 41 | + <span class="p-column-title font-light">{{cols[0].header}}</span> |
| 42 | + <span class="text-right">{{ log.title }}</span> |
| 43 | + </td> |
| 44 | + <td [routerLink]="[log.id]" class="justify-content-between"> |
| 45 | + <span class="p-column-title font-light">{{cols[1].header}}</span> |
| 46 | + <span class="text-right">{{ log.desc }}</span> |
| 47 | + </td> |
| 48 | + <td [routerLink]="[log.id]" class="justify-content-between"> |
| 49 | + <span class="p-column-title font-light">{{cols[2].header}}</span> |
| 50 | + <span class="flex-wrap text-right"> |
| 51 | + <span [ngClass]="{'p-error': !(log.templateId | templateExists: templates)}" class="text-overflow-anywhere "> |
| 52 | + {{ log.templateId | templateTitle: templates }} |
| 53 | + </span> |
| 54 | + <ng-container *ngIf="log.templateId | templateDesc: templates as desc"> |
| 55 | + <span class="text-overflow-anywhere font-light text-500">({{ desc }})</span> |
| 56 | + </ng-container> |
45 | 57 | </span>
|
46 |
| - <ng-container *ngIf="log.templateId | templateDesc: templates as desc"> |
47 |
| - <span class="text-overflow-anywhere font-light text-500"> ({{ desc }}) </span> |
48 |
| - </ng-container> |
49 | 58 | </td>
|
50 |
| - <td class="text-center" [routerLink]="[log.id]">{{ log.recordsCount }}</td> |
| 59 | + <td [routerLink]="[log.id]" class="justify-content-between text-center"> |
| 60 | + <span class="p-column-title font-light">{{cols[3].header}}</span> |
| 61 | + <span class="text-right">{{ log.recordsCount }}</span> |
| 62 | + </td> |
51 | 63 | </tr>
|
52 | 64 | </ng-template>
|
53 | 65 | <ng-template pTemplate="emptymessage" let-columns>
|
|
0 commit comments