ActivityPub-federated video streaming platform using P2P directly in your web browser
Reduce createdAt column size by using short date format
Rigel Kent7f979fd8aa76
diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.html b/client/src/app/+admin/follows/followers-list/followers-list.component.htmlindex 41f557510a..a3be5961b7 100644--- a/client/src/app/+admin/follows/followers-list/followers-list.component.html+++ b/client/src/app/+admin/follows/followers-list/followers-list.component.html@@ -18,7 +18,7 @@<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="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></tr></ng-template>@@ -31,7 +31,7 @@<td *ngIf="follow.state === 'pending'" i18n>Pending</td><td>{{ follow.score }}</td>- <td>{{ follow.createdAt }}</td>+ <td>{{ follow.createdAt | date: 'short' }}</td><td class="action-cell"><ng-container *ngIf="follow.state === 'pending'">diff --git a/client/src/app/+admin/follows/following-list/following-list.component.html b/client/src/app/+admin/follows/following-list/following-list.component.htmlindex 5fb0f49009..4c232e29d7 100644--- a/client/src/app/+admin/follows/following-list/following-list.component.html+++ b/client/src/app/+admin/follows/following-list/following-list.component.html@@ -23,7 +23,7 @@<tr><th i18n>Host</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: 100px;"></th></tr>@@ -41,7 +41,7 @@<td *ngIf="follow.state === 'accepted'" i18n>Accepted</td><td *ngIf="follow.state === 'pending'" i18n>Pending</td>- <td>{{ follow.createdAt }}</td>+ <td>{{ follow.createdAt | date: 'short' }}</td><td><my-redundancy-checkbox[host]="follow.following.host" [redundancyAllowed]="follow.following.hostRedundancyAllowed"diff --git a/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html b/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.htmlindex ffc8a8e399..99b4e267c0 100644--- a/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html+++ b/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html@@ -18,7 +18,7 @@<ng-template pTemplate="header"><tr><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 --></tr></ng-template>@@ -42,7 +42,7 @@</a></td>- <td>{{ accountBlock.createdAt }}</td>+ <td>{{ accountBlock.createdAt | date: 'short' }}</td><td class="action-cell"><button class="unblock-button" (click)="unblockAccount(accountBlock)" i18n>Unmute</button></td>diff --git a/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.html b/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.htmlindex d1098800bf..aecdca3873 100644--- a/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.html+++ b/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.html@@ -22,7 +22,7 @@<ng-template pTemplate="header"><tr><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 --></tr></ng-template>@@ -35,7 +35,7 @@<span class="glyphicon glyphicon-new-window"></span></a></td>- <td>{{ serverBlock.createdAt }}</td>+ <td>{{ serverBlock.createdAt | date: 'short' }}</td><td class="action-cell"><button class="unblock-button" (click)="unblockServer(serverBlock)" i18n>Unmute</button></td>diff --git a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.htmlindex b55b18333d..cf5cd58f8d 100644--- a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html+++ b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html@@ -42,7 +42,7 @@<th style="width: 40px;"></th><th style="width: 20%;" pResizableColumn i18n>Reporter</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 style="width: 120px;"></th></tr>@@ -112,7 +112,7 @@</div></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"><span *ngIf="isVideoAbuseAccepted(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-ok"></span>diff --git a/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html b/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.htmlindex 5eabcb37f0..f0e83dae9e 100644--- a/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html+++ b/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html@@ -21,7 +21,7 @@<th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th><th style="width: 100px;" i18n>Sensitive</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></tr></ng-template>@@ -55,12 +55,12 @@<ng-container *ngIf="videoBlacklist.reason"><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">{{ videoBlacklist.createdAt }}</td>+ <td class="c-hand" [pRowToggler]="videoBlacklist">{{ videoBlacklist.createdAt | date: 'short' }}</td></ng-container><ng-container *ngIf="!videoBlacklist.reason"><td>{{ booleanToText(videoBlacklist.video.nsfw) }}</td><td>{{ booleanToText(videoBlacklist.unfederated) }}</td>- <td>{{ videoBlacklist.createdAt }}</td>+ <td>{{ videoBlacklist.createdAt | date: 'short' }}</td></ng-container><td class="action-cell">