Move abuse state column at the end
authorChocobozzz <me@florianbigard.com>
Tue, 28 Aug 2018 14:05:38 +0000 (16:05 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 28 Aug 2018 14:05:38 +0000 (16:05 +0200)
client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html
client/src/sass/primeng-custom.scss

index 0d0f644dc95c96e435caa75c01244bda21766586..287ab3e46a58607c1808de17747850347c500e49 100644 (file)
@@ -5,10 +5,10 @@
   <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>Reporter</th>
       <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
       <th i18n>Video</th>
+      <th i18n pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th>
       <th style="width: 50px;"></th>
     </tr>
   </ng-template>
         </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>
         <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>
       </td>
index 674aa649e47dde159945aad98dd6152eff863763..1ec5c7da20c4c9bb3d261e45a394c0a044335019 100644 (file)
@@ -84,6 +84,7 @@ p-table {
 
         color: #000;
         font-size: 11px;
+        top: 0;
 
         &.pi-sort-up {
           @extend .glyphicon-triangle-top;