aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html
blob: 8111e5f73f0b306c9db083edf021cdb730087c90 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                              
                                                          
      
 


                                                                                                           
 

                                  



                                                                                                   





                                               
          
                                                                                                                                  


                                                          

                                         
                                                                                                                      

                                     



                
<div class="admin-sub-header">
  <div i18n class="form-sub-title">Video abuses list</div>
</div>

<p-table
  [value]="videoAbuses" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage"
  [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)"
>
  <ng-template pTemplate="header">
    <tr>
      <th i18n>Reason</th>
      <th i18n>Reporter</th>
      <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
      <th i18n>Video</th>
    </tr>
  </ng-template>

  <ng-template pTemplate="body" let-videoAbuse>
    <tr>
      <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>{{ videoAbuse.createdAt }}</td>
      <td>
        <a [href]="videoAbuse.video.url" i18n-title title="Go to the video" target="_blank" rel="noopener noreferrer">
          {{ videoAbuse.video.name }}
        </a>
      </td>
    </tr>
  </ng-template>
</p-table>