diff options
author | Chocobozzz <me@florianbigard.com> | 2023-08-18 13:43:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-08-18 13:43:59 +0200 |
commit | c74dc602a682475abb37adff16b0964303321c15 (patch) | |
tree | d5a19cfc07a0d0931c6245ebc55c698aece39b2d /client/src/app/shared | |
parent | 863ef63805c2b5bc3b3ea1f9a59797774ba74c58 (diff) | |
download | PeerTube-c74dc602a682475abb37adff16b0964303321c15.tar.gz PeerTube-c74dc602a682475abb37adff16b0964303321c15.tar.zst PeerTube-c74dc602a682475abb37adff16b0964303321c15.zip |
Simplify table pagination footer
Diffstat (limited to 'client/src/app/shared')
3 files changed, 3 insertions, 7 deletions
diff --git a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html index 3bed812d1..0ce0624fc 100644 --- a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html +++ b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html | |||
@@ -2,9 +2,7 @@ | |||
2 | [value]="abuses" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start" | 2 | [value]="abuses" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start" |
3 | [rowsPerPageOptions]="rowsPerPageOptions" [sortField]="sort.field" [sortOrder]="sort.order" dataKey="id" [resizableColumns]="true" | 3 | [rowsPerPageOptions]="rowsPerPageOptions" [sortField]="sort.field" [sortOrder]="sort.order" dataKey="id" [resizableColumns]="true" |
4 | [lazy]="true" (onLazyLoad)="loadLazy($event)" [lazyLoadOnInit]="false" | 4 | [lazy]="true" (onLazyLoad)="loadLazy($event)" [lazyLoadOnInit]="false" |
5 | [showCurrentPageReport]="true" i18n-currentPageReportTemplate | 5 | [showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()" [expandedRowKeys]="expandedRows" |
6 | currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} reports" | ||
7 | [expandedRowKeys]="expandedRows" | ||
8 | > | 6 | > |
9 | <ng-template pTemplate="caption"> | 7 | <ng-template pTemplate="caption"> |
10 | <div class="caption"> | 8 | <div class="caption"> |
diff --git a/client/src/app/shared/shared-moderation/account-blocklist.component.html b/client/src/app/shared/shared-moderation/account-blocklist.component.html index 609a8cecd..e6a28adc9 100644 --- a/client/src/app/shared/shared-moderation/account-blocklist.component.html +++ b/client/src/app/shared/shared-moderation/account-blocklist.component.html | |||
@@ -7,8 +7,7 @@ | |||
7 | [value]="blockedAccounts" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" | 7 | [value]="blockedAccounts" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" |
8 | [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" [first]="pagination.start" | 8 | [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" [first]="pagination.start" |
9 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" | 9 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" |
10 | [showCurrentPageReport]="true" i18n-currentPageReportTemplate | 10 | [showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()" |
11 | currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} muted accounts" | ||
12 | > | 11 | > |
13 | <ng-template pTemplate="caption"> | 12 | <ng-template pTemplate="caption"> |
14 | <div class="caption"> | 13 | <div class="caption"> |
diff --git a/client/src/app/shared/shared-moderation/server-blocklist.component.html b/client/src/app/shared/shared-moderation/server-blocklist.component.html index a98333339..eeca04f4a 100644 --- a/client/src/app/shared/shared-moderation/server-blocklist.component.html +++ b/client/src/app/shared/shared-moderation/server-blocklist.component.html | |||
@@ -8,8 +8,7 @@ | |||
8 | [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" [first]="pagination.start" | 8 | [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" [first]="pagination.start" |
9 | [sortField]="sort.field" [sortOrder]="sort.order" | 9 | [sortField]="sort.field" [sortOrder]="sort.order" |
10 | [lazy]="true" (onLazyLoad)="loadLazy($event)" [lazyLoadOnInit]="false" | 10 | [lazy]="true" (onLazyLoad)="loadLazy($event)" [lazyLoadOnInit]="false" |
11 | [showCurrentPageReport]="true" i18n-currentPageReportTemplate | 11 | [showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()" |
12 | currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} muted instances" | ||
13 | > | 12 | > |
14 | <ng-template pTemplate="caption"> | 13 | <ng-template pTemplate="caption"> |
15 | <div class="caption"> | 14 | <div class="caption"> |