Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

1.6 KB
Raw Blame
<my-table
  #table
  key="MyOwnershipChangesComponent"
  [defaultColumns]="columns"
  i18n-paginatorText
  paginatorText="entries per page"
  [dataLoader]="dataLoader"
  columnConfig="false"
  [bulkActions]="bulkActions"
>
  <ng-template #totalTitle let-totalRecords>
    <ng-container i18n>{ totalRecords, plural, =0 {No video ownership change} =1 {1 video ownership change} other {{{ totalRecords | myNumberFormatter }} video ownership changes}}</ng-container>
  </ng-template>

  <ng-template #tableCells let-entry>
    <td>
      <my-video-cell [video]="entry.video" size="small"></my-video-cell>
    </td>

     <td>
      @if (isReceiver(entry)) {
        <span class="pt-badge badge-primary">TO YOU</span>
      } @else {
        <my-actor-cell [actor]="entry.nextOwnerAccount" actorType="account" [displayAvatar]="true" [displayUsername]="true" target="_blank"></my-actor-cell>
      }

    </td>

    <td>{{ entry.createdAt | ptDate: 'short' }}</td>

    <td>
      <span class="pt-badge" [ngClass]="getStateClass(entry.state.id)">{{ entry.state.label }}</span>
    </td>

  </ng-template>

  <ng-template #actionCell let-entry>
    <my-action-dropdown
      placement="bottom-right top-right left auto" container="body"
      i18n-label label="Actions" [actions]="actions" [entry]="entry"
    ></my-action-dropdown>
  </ng-template>

  <ng-template #noResults>
    <ng-container i18n>No ownership change request found.</ng-container>
  </ng-template>
</my-table>

<my-accept-change-video-ownership #acceptChangeVideoOwnershipComponent (accepted)="accepted()"></my-accept-change-video-ownership>