]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
fix colspan for user view of reports
authorRigel Kent <sendmemail@rigelk.eu>
Mon, 7 Jun 2021 11:17:31 +0000 (13:17 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Mon, 7 Jun 2021 11:17:31 +0000 (13:17 +0200)
client/src/app/shared/shared-abuse-list/abuse-list-table.component.html

index b1c065c7a58edb467b28d6e0a1a51e5e705453cc..4bf83316bd5e6cc14c2024267671ea2f95cbbec4 100644 (file)
 
   <ng-template pTemplate="rowexpansion" let-abuse>
       <tr>
-        <td class="expand-cell" colspan="8">
-          <my-abuse-details [abuse]="abuse" [isAdminView]="isAdminView()"></my-abuse-details>
+        <td *ngIf="isAdminView()" class="expand-cell" colspan="8">
+          <my-abuse-details [abuse]="abuse" [isAdminView]="true"></my-abuse-details>
+        </td>
+        <td *ngIf="!isAdminView()" class="expand-cell" colspan="6">
+          <my-abuse-details [abuse]="abuse" [isAdminView]="false"></my-abuse-details>
         </td>
       </tr>
   </ng-template>