]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html
Display report reason in multiple lines (#957)
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / moderation / video-abuse-list / video-abuse-list.component.html
index 722ff79063788352463b54f774cb845ce552d6f1..0d0f644dc95c96e435caa75c01244bda21766586 100644 (file)
@@ -6,7 +6,6 @@
     <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>
@@ -17,7 +16,7 @@
   <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>
@@ -27,8 +26,6 @@
         <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) }}
   </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">{{ videoAbuse.reason }}</span>
+          </div>
+          <div *ngIf="videoAbuse.moderationComment">
+            <span i18n class="moderation-expanded-label">Moderation comment:</span>
+            <span class="moderation-expanded-text">{{ videoAbuse.moderationComment }}</span>
+          </div>
+        </td>
+      </tr>
   </ng-template>
 </p-table>