<ng-template pTemplate="header">
<tr>
<th style="width: 40px"></th>
- <th i18n pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th>
- <th i18n>Reason</th>
<th i18n>Reporter</th>
<th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
<th i18n>Video</th>
- <th style="width: 50px;"></th>
+ <th i18n pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th>
+ <th style="width: 120px;"></th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-expanded="expanded" let-videoAbuse>
<tr>
<td>
- <span *ngIf="videoAbuse.moderationComment" class="expander" [pRowToggler]="videoAbuse">
+ <span class="expander" [pRowToggler]="videoAbuse">
<i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
</span>
</td>
- <td>
- <span *ngIf="isVideoAbuseAccepted(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-ok"></span>
- <span *ngIf="isVideoAbuseRejected(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-remove"></span>
- </td>
-
- <td>{{ videoAbuse.reason }}</td>
-
<td>
<a [href]="videoAbuse.reporterAccount.url" i18n-title title="Go to the account" target="_blank" rel="noopener noreferrer">
{{ createByString(videoAbuse.reporterAccount) }}
</a>
</td>
+ <td>
+ <span *ngIf="isVideoAbuseAccepted(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-ok"></span>
+ <span *ngIf="isVideoAbuseRejected(videoAbuse)" [title]="videoAbuse.state.label" class="glyphicon glyphicon-remove"></span>
+ </td>
+
<td class="action-cell">
- <my-action-dropdown i18n-label label="Actions" [actions]="videoAbuseActions" [entry]="videoAbuse"></my-action-dropdown>
+ <my-action-dropdown placement="bottom-right" i18n-label label="Actions" [actions]="videoAbuseActions" [entry]="videoAbuse"></my-action-dropdown>
</td>
</tr>
</ng-template>
<ng-template pTemplate="rowexpansion" let-videoAbuse>
- <tr class="moderation-comment">
- <td colspan="7">
- <span i18n class="moderation-comment-label">Moderation comment:</span>
- {{ videoAbuse.moderationComment }}
- </td>
- </tr>
+ <tr>
+ <td class="moderation-expanded" colspan="6">
+ <div>
+ <span i18n class="moderation-expanded-label">Reason:</span>
+ <span class="moderation-expanded-text" [innerHTML]="videoAbuse.reasonHtml"></span>
+ </div>
+ <div *ngIf="videoAbuse.moderationComment">
+ <span i18n class="moderation-expanded-label">Moderation comment:</span>
+ <span class="moderation-expanded-text" [innerHTML]="videoAbuse.moderationCommentHtml"></span>
+ </div>
+ </td>
+ </tr>
</ng-template>
</p-table>
-<my-moderation-comment-modal #moderationCommentModal (commentUpdated)="onModerationCommentUpdated()"></my-moderation-comment-modal>
\ No newline at end of file
+<my-moderation-comment-modal #moderationCommentModal (commentUpdated)="onModerationCommentUpdated()"></my-moderation-comment-modal>