aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/blacklist/blacklist-list/blacklist-list.component.html
blob: 5d4636ee93f7bf4cbc38ec63752a193362e7a20d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<div class="row">
  <div class="content-padding">
    <h3>Blacklisted videos</h3>

    <p-dataTable
      [value]="blacklist" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage"
      sortField="id" (onLazyLoad)="loadLazy($event)"
    >
      <p-column field="id" header="ID" [sortable]="true"></p-column>
      <p-column field="name" header="Name" [sortable]="true"></p-column>
      <p-column field="description" header="Description"></p-column>
      <p-column field="duration" header="Duration" [sortable]="true"></p-column>
      <p-column field="views" header="Views" [sortable]="true"></p-column>
      <p-column field="likes" header="Likes" [sortable]="true"></p-column>
      <p-column field="dislikes" header="Dislikes" [sortable]="true"></p-column>
      <p-column field="nsfw" header="NSFW"></p-column>
      <p-column field="uuid" header="UUID" [sortable]="true"></p-column>
      <p-column field="createdAt" header="Created date" [sortable]="true"></p-column>
      <p-column header="Delete" styleClass="action-cell">
        <ng-template pTemplate="body" let-entry="rowData">
	  <span (click)="removeVideoFromBlacklist(entry)" class="glyphicon glyphicon-remove glyphicon-black" title="Remove this video"></span>
	</ng-template>
      </p-column>
    </p-dataTable>
  </div>
</div>