Reduce createdAt column size by using short date format
This commit is contained in:
parent
0d3a2982a9
commit
7f979fd8aa
6 changed files with 13 additions and 13 deletions
|
@ -18,7 +18,7 @@
|
||||||
<th i18n>Follower handle</th>
|
<th i18n>Follower handle</th>
|
||||||
<th style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th>
|
<th style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th>
|
||||||
<th style="width: 100px;" i18n pSortableColumn="score">Score <p-sortIcon field="score"></p-sortIcon></th>
|
<th style="width: 100px;" i18n pSortableColumn="score">Score <p-sortIcon field="score"></p-sortIcon></th>
|
||||||
<th style="width: 200px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
|
<th style="width: 140px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
|
||||||
<th style="width: 100px;"></th>
|
<th style="width: 100px;"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
<td *ngIf="follow.state === 'pending'" i18n>Pending</td>
|
<td *ngIf="follow.state === 'pending'" i18n>Pending</td>
|
||||||
|
|
||||||
<td>{{ follow.score }}</td>
|
<td>{{ follow.score }}</td>
|
||||||
<td>{{ follow.createdAt }}</td>
|
<td>{{ follow.createdAt | date: 'short' }}</td>
|
||||||
|
|
||||||
<td class="action-cell">
|
<td class="action-cell">
|
||||||
<ng-container *ngIf="follow.state === 'pending'">
|
<ng-container *ngIf="follow.state === 'pending'">
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th i18n>Host</th>
|
<th i18n>Host</th>
|
||||||
<th style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th>
|
<th style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th>
|
||||||
<th style="width: 200px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
|
<th style="width: 140px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
|
||||||
<th style="width: 160px;" i18n pSortableColumn="redundancyAllowed">Redundancy allowed <p-sortIcon field="redundancyAllowed"></p-sortIcon></th>
|
<th style="width: 160px;" i18n pSortableColumn="redundancyAllowed">Redundancy allowed <p-sortIcon field="redundancyAllowed"></p-sortIcon></th>
|
||||||
<th style="width: 100px;"></th>
|
<th style="width: 100px;"></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
<td *ngIf="follow.state === 'accepted'" i18n>Accepted</td>
|
<td *ngIf="follow.state === 'accepted'" i18n>Accepted</td>
|
||||||
<td *ngIf="follow.state === 'pending'" i18n>Pending</td>
|
<td *ngIf="follow.state === 'pending'" i18n>Pending</td>
|
||||||
|
|
||||||
<td>{{ follow.createdAt }}</td>
|
<td>{{ follow.createdAt | date: 'short' }}</td>
|
||||||
<td>
|
<td>
|
||||||
<my-redundancy-checkbox
|
<my-redundancy-checkbox
|
||||||
[host]="follow.following.host" [redundancyAllowed]="follow.following.hostRedundancyAllowed"
|
[host]="follow.following.host" [redundancyAllowed]="follow.following.hostRedundancyAllowed"
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<ng-template pTemplate="header">
|
<ng-template pTemplate="header">
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 100%;" i18n>Account</th>
|
<th style="width: 100%;" i18n>Account</th>
|
||||||
<th style="width: 190px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>
|
<th style="width: 140px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>
|
||||||
<th style="width: 100px;"></th> <!-- column for action buttons -->
|
<th style="width: 100px;"></th> <!-- column for action buttons -->
|
||||||
</tr>
|
</tr>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>{{ accountBlock.createdAt }}</td>
|
<td>{{ accountBlock.createdAt | date: 'short' }}</td>
|
||||||
<td class="action-cell">
|
<td class="action-cell">
|
||||||
<button class="unblock-button" (click)="unblockAccount(accountBlock)" i18n>Unmute</button>
|
<button class="unblock-button" (click)="unblockAccount(accountBlock)" i18n>Unmute</button>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<ng-template pTemplate="header">
|
<ng-template pTemplate="header">
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 100%;" i18n>Instance</th>
|
<th style="width: 100%;" i18n>Instance</th>
|
||||||
<th style="width: 190px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>
|
<th style="width: 140px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>
|
||||||
<th style="width: 100px;"></th> <!-- column for action buttons -->
|
<th style="width: 100px;"></th> <!-- column for action buttons -->
|
||||||
</tr>
|
</tr>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
<span class="glyphicon glyphicon-new-window"></span>
|
<span class="glyphicon glyphicon-new-window"></span>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>{{ serverBlock.createdAt }}</td>
|
<td>{{ serverBlock.createdAt | date: 'short' }}</td>
|
||||||
<td class="action-cell">
|
<td class="action-cell">
|
||||||
<button class="unblock-button" (click)="unblockServer(serverBlock)" i18n>Unmute</button>
|
<button class="unblock-button" (click)="unblockServer(serverBlock)" i18n>Unmute</button>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<th style="width: 40px;"></th>
|
<th style="width: 40px;"></th>
|
||||||
<th style="width: 20%;" pResizableColumn i18n>Reporter</th>
|
<th style="width: 20%;" pResizableColumn i18n>Reporter</th>
|
||||||
<th i18n>Video</th>
|
<th i18n>Video</th>
|
||||||
<th style="width: 190px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
|
<th style="width: 140px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
|
||||||
<th i18n pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th>
|
<th i18n pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th>
|
||||||
<th style="width: 120px;"></th>
|
<th style="width: 120px;"></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -112,7 +112,7 @@
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="c-hand" [pRowToggler]="videoAbuse">{{ videoAbuse.createdAt }}</td>
|
<td class="c-hand" [pRowToggler]="videoAbuse">{{ videoAbuse.createdAt | date: 'short' }}</td>
|
||||||
|
|
||||||
<td class="c-hand video-abuse-states" [pRowToggler]="videoAbuse">
|
<td class="c-hand video-abuse-states" [pRowToggler]="videoAbuse">
|
||||||
<span *ngIf="isVideoAbuseAccepted(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-ok"></span>
|
<span *ngIf="isVideoAbuseAccepted(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-ok"></span>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th>
|
<th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th>
|
||||||
<th style="width: 100px;" i18n>Sensitive</th>
|
<th style="width: 100px;" i18n>Sensitive</th>
|
||||||
<th style="width: 120px;" i18n>Unfederated</th>
|
<th style="width: 120px;" i18n>Unfederated</th>
|
||||||
<th style="width: 190px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th>
|
<th style="width: 140px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th>
|
||||||
<th style="width: 120px;"></th>
|
<th style="width: 120px;"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
@ -55,12 +55,12 @@
|
||||||
<ng-container *ngIf="videoBlacklist.reason">
|
<ng-container *ngIf="videoBlacklist.reason">
|
||||||
<td class="c-hand" [pRowToggler]="videoBlacklist">{{ booleanToText(videoBlacklist.video.nsfw) }}</td>
|
<td class="c-hand" [pRowToggler]="videoBlacklist">{{ booleanToText(videoBlacklist.video.nsfw) }}</td>
|
||||||
<td class="c-hand" [pRowToggler]="videoBlacklist">{{ booleanToText(videoBlacklist.unfederated) }}</td>
|
<td class="c-hand" [pRowToggler]="videoBlacklist">{{ booleanToText(videoBlacklist.unfederated) }}</td>
|
||||||
<td class="c-hand" [pRowToggler]="videoBlacklist">{{ videoBlacklist.createdAt }}</td>
|
<td class="c-hand" [pRowToggler]="videoBlacklist">{{ videoBlacklist.createdAt | date: 'short' }}</td>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngIf="!videoBlacklist.reason">
|
<ng-container *ngIf="!videoBlacklist.reason">
|
||||||
<td>{{ booleanToText(videoBlacklist.video.nsfw) }}</td>
|
<td>{{ booleanToText(videoBlacklist.video.nsfw) }}</td>
|
||||||
<td>{{ booleanToText(videoBlacklist.unfederated) }}</td>
|
<td>{{ booleanToText(videoBlacklist.unfederated) }}</td>
|
||||||
<td>{{ videoBlacklist.createdAt }}</td>
|
<td>{{ videoBlacklist.createdAt | date: 'short' }}</td>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<td class="action-cell">
|
<td class="action-cell">
|
||||||
|
|
Loading…
Reference in a new issue