]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+my-account/my-account-video-imports/my-account-video-imports.component.html
Correct missing test in user-edit template
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-video-imports / my-account-video-imports.component.html
index b67c053e6ae7bc8c9bbac831a4872c1faed8b6b5..3e07550c1be3d570929af158f09313c11cdf8471 100644 (file)
@@ -1,15 +1,19 @@
+<h1 class="sr-only" i18n>Imports</h1>
 <p-table
-  [value]="videoImports" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage"
+  [value]="videoImports" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
   [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id"
+  [showCurrentPageReport]="true" i18n-currentPageReportTemplate
+  currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} imports"
+  (onPage)="onPage($event)" [expandedRowKeys]="expandedRows"
 >
   <ng-template pTemplate="header">
     <tr>
       <th style="width: 40px;"></th>
-      <th i18n>Target</th>
-      <th i18n>Video</th>
-      <th i18n style="width: 150px">State</th>
-      <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
-      <th></th>
+      <th style="width: 45%" i18n>Target</th>
+      <th style="width: 55%" i18n>Video</th>
+      <th style="width: 150px" i18n>State</th>
+      <th style="width: 150px" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
+      <th style="width: 70px"></th>
     </tr>
   </ng-template>
 
@@ -38,7 +42,7 @@
       </td>
 
       <td>{{ videoImport.state.label }}</td>
-      <td>{{ videoImport.createdAt }}</td>
+      <td>{{ videoImport.createdAt | date: 'short' }}</td>
 
       <td class="action-cell">
         <my-edit-button *ngIf="isVideoImportSuccess(videoImport) && videoImport.video" [routerLink]="getEditVideoUrl(videoImport.video)"></my-edit-button>