diff options
Diffstat (limited to 'client/src/app')
3 files changed, 15 insertions, 16 deletions
diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html index 7250b1368..c7275de1b 100644 --- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html +++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html | |||
@@ -80,16 +80,17 @@ | |||
80 | </a> | 80 | </a> |
81 | </td> | 81 | </td> |
82 | 82 | ||
83 | <ng-container *ngIf="videoBlock.reason"> | 83 | <td> |
84 | <td class="c-hand" [pRowToggler]="videoBlock">{{ booleanToText(videoBlock.video.nsfw) }}</td> | 84 | <span *ngIf="videoBlock.video.nsfw" class="badge badge-red" i18n>NSFW</span> |
85 | <td class="c-hand" [pRowToggler]="videoBlock">{{ booleanToText(videoBlock.unfederated) }}</td> | 85 | </td> |
86 | <td class="c-hand" [pRowToggler]="videoBlock">{{ videoBlock.createdAt | date: 'short' }}</td> | 86 | |
87 | </ng-container> | 87 | <td> |
88 | <ng-container *ngIf="!videoBlock.reason"> | 88 | <span *ngIf="videoBlock.unfederated" class="badge badge-blue" i18n>Unfederated</span> |
89 | <td>{{ booleanToText(videoBlock.video.nsfw) }}</td> | 89 | </td> |
90 | <td>{{ booleanToText(videoBlock.unfederated) }}</td> | 90 | |
91 | <td>{{ videoBlock.createdAt | date: 'short' }}</td> | 91 | <td> |
92 | </ng-container> | 92 | {{ videoBlock.createdAt | date: 'short' }} |
93 | </td> | ||
93 | </tr> | 94 | </tr> |
94 | </ng-template> | 95 | </ng-template> |
95 | 96 | ||
diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss index 0e34150c1..b67e33cc1 100644 --- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss +++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss | |||
@@ -21,3 +21,7 @@ my-global-icon { | |||
21 | flex-grow: 1; | 21 | flex-grow: 1; |
22 | } | 22 | } |
23 | } | 23 | } |
24 | |||
25 | .badge { | ||
26 | @include table-badge; | ||
27 | } | ||
diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts index 82818547c..1d0e56bfd 100644 --- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts +++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts | |||
@@ -138,12 +138,6 @@ export class VideoBlockListComponent extends RestTable implements OnInit, AfterV | |||
138 | return Video.buildClientUrl(videoBlock.video.uuid) | 138 | return Video.buildClientUrl(videoBlock.video.uuid) |
139 | } | 139 | } |
140 | 140 | ||
141 | booleanToText (value: boolean) { | ||
142 | if (value === true) return $localize`yes` | ||
143 | |||
144 | return $localize`no` | ||
145 | } | ||
146 | |||
147 | toHtml (text: string) { | 141 | toHtml (text: string) { |
148 | return this.markdownRenderer.textMarkdownToHTML(text) | 142 | return this.markdownRenderer.textMarkdownToHTML(text) |
149 | } | 143 | } |