aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-26 10:27:02 +0200
committerChocobozzz <me@florianbigard.com>2023-05-26 10:27:02 +0200
commit4b70c278a960a8d43407f0039aa03d0b08b44f9c (patch)
treed82990de9c1075dc5357f5f2f03162381f1e2c87 /client/src/app/+admin
parenta4c49a17ea8b90c1522a9d0868de7186c7432592 (diff)
downloadPeerTube-4b70c278a960a8d43407f0039aa03d0b08b44f9c.tar.gz
PeerTube-4b70c278a960a8d43407f0039aa03d0b08b44f9c.tar.zst
PeerTube-4b70c278a960a8d43407f0039aa03d0b08b44f9c.zip
Automatic colspan for tables
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r--client/src/app/+admin/follows/followers-list/followers-list.component.html2
-rw-r--r--client/src/app/+admin/follows/following-list/following-list.component.html2
-rw-r--r--client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html6
-rw-r--r--client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts6
-rw-r--r--client/src/app/+admin/moderation/registration-list/registration-list.component.html4
-rw-r--r--client/src/app/+admin/moderation/video-block-list/video-block-list.component.html4
-rw-r--r--client/src/app/+admin/overview/comments/video-comment-list.component.html4
-rw-r--r--client/src/app/+admin/overview/users/user-list/user-list.component.html2
-rw-r--r--client/src/app/+admin/overview/videos/video-list.component.html2
-rw-r--r--client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.html4
-rw-r--r--client/src/app/+admin/system/runners/runner-list/runner-list.component.html2
-rw-r--r--client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html2
12 files changed, 17 insertions, 23 deletions
diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.html b/client/src/app/+admin/follows/followers-list/followers-list.component.html
index 14c62f1af..3326d59db 100644
--- a/client/src/app/+admin/follows/followers-list/followers-list.component.html
+++ b/client/src/app/+admin/follows/followers-list/followers-list.component.html
@@ -72,7 +72,7 @@
72 72
73 <ng-template pTemplate="emptymessage"> 73 <ng-template pTemplate="emptymessage">
74 <tr> 74 <tr>
75 <td colspan="6"> 75 <td myAutoColspan>
76 <div class="no-results"> 76 <div class="no-results">
77 <ng-container *ngIf="search" i18n>No follower found matching current filters.</ng-container> 77 <ng-container *ngIf="search" i18n>No follower found matching current filters.</ng-container>
78 <ng-container *ngIf="!search" i18n>Your instance doesn't have any follower.</ng-container> 78 <ng-container *ngIf="!search" i18n>Your instance doesn't have any follower.</ng-container>
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.html b/client/src/app/+admin/follows/following-list/following-list.component.html
index f46f36375..07495a74c 100644
--- a/client/src/app/+admin/follows/following-list/following-list.component.html
+++ b/client/src/app/+admin/follows/following-list/following-list.component.html
@@ -79,7 +79,7 @@
79 79
80 <ng-template pTemplate="emptymessage"> 80 <ng-template pTemplate="emptymessage">
81 <tr> 81 <tr>
82 <td colspan="6"> 82 <td myAutoColspan>
83 <div class="no-results"> 83 <div class="no-results">
84 <ng-container *ngIf="search" i18n>No host found matching current filters.</ng-container> 84 <ng-container *ngIf="search" i18n>No host found matching current filters.</ng-container>
85 <ng-container *ngIf="!search" i18n>Your instance is not following anyone.</ng-container> 85 <ng-container *ngIf="!search" i18n>Your instance is not following anyone.</ng-container>
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html
index 2b52d3fd8..85b9d8913 100644
--- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html
+++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html
@@ -57,7 +57,7 @@
57 57
58 <ng-template pTemplate="rowexpansion" let-redundancy> 58 <ng-template pTemplate="rowexpansion" let-redundancy>
59 <tr *ngIf="redundancy.redundancies.files.length !== 0"> 59 <tr *ngIf="redundancy.redundancies.files.length !== 0">
60 <td class="expand-cell" [attr.colspan]="getColspan()"> 60 <td class="expand-cell" myAutoColspan>
61 <div *ngFor="let file of redundancy.redundancies.files" class="expansion-block"> 61 <div *ngFor="let file of redundancy.redundancies.files" class="expansion-block">
62 <my-video-redundancy-information [redundancyElement]="file"></my-video-redundancy-information> 62 <my-video-redundancy-information [redundancyElement]="file"></my-video-redundancy-information>
63 </div> 63 </div>
@@ -65,7 +65,7 @@
65 </tr> 65 </tr>
66 66
67 <tr *ngIf="redundancy.redundancies.streamingPlaylists.length !== 0"> 67 <tr *ngIf="redundancy.redundancies.streamingPlaylists.length !== 0">
68 <td class="expand-cell" [attr.colspan]="getColspan()"> 68 <td class="expand-cell" myAutoColspan>
69 <div *ngFor="let playlist of redundancy.redundancies.streamingPlaylists"> 69 <div *ngFor="let playlist of redundancy.redundancies.streamingPlaylists">
70 <my-video-redundancy-information [redundancyElement]="playlist"></my-video-redundancy-information> 70 <my-video-redundancy-information [redundancyElement]="playlist"></my-video-redundancy-information>
71 </div> 71 </div>
@@ -75,7 +75,7 @@
75 75
76 <ng-template pTemplate="emptymessage"> 76 <ng-template pTemplate="emptymessage">
77 <tr> 77 <tr>
78 <td colspan="6"> 78 <td myAutoColspan>
79 <div class="no-results"> 79 <div class="no-results">
80 <ng-container *ngIf="isDisplayingRemoteVideos()" i18n>Your instance doesn't mirror any video.</ng-container> 80 <ng-container *ngIf="isDisplayingRemoteVideos()" i18n>Your instance doesn't mirror any video.</ng-container>
81 <ng-container *ngIf="!isDisplayingRemoteVideos()" i18n>Your instance has no mirrored videos.</ng-container> 81 <ng-container *ngIf="!isDisplayingRemoteVideos()" i18n>Your instance has no mirrored videos.</ng-container>
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts
index d65467a4d..efcefd509 100644
--- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts
+++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts
@@ -63,12 +63,6 @@ export class VideoRedundanciesListComponent extends RestTable implements OnInit
63 }) 63 })
64 } 64 }
65 65
66 getColspan () {
67 if (this.isDisplayingRemoteVideos()) return 5
68
69 return 4
70 }
71
72 isDisplayingRemoteVideos () { 66 isDisplayingRemoteVideos () {
73 return this.displayType === 'remote-videos' 67 return this.displayType === 'remote-videos'
74 } 68 }
diff --git a/client/src/app/+admin/moderation/registration-list/registration-list.component.html b/client/src/app/+admin/moderation/registration-list/registration-list.component.html
index a2b888101..8e5e2cf49 100644
--- a/client/src/app/+admin/moderation/registration-list/registration-list.component.html
+++ b/client/src/app/+admin/moderation/registration-list/registration-list.component.html
@@ -102,7 +102,7 @@
102 102
103 <ng-template pTemplate="rowexpansion" let-registration> 103 <ng-template pTemplate="rowexpansion" let-registration>
104 <tr> 104 <tr>
105 <td colspan="9"> 105 <td myAutoColspan>
106 <div class="moderation-expanded"> 106 <div class="moderation-expanded">
107 <div class="left"> 107 <div class="left">
108 <div class="d-flex"> 108 <div class="d-flex">
@@ -122,7 +122,7 @@
122 122
123 <ng-template pTemplate="emptymessage"> 123 <ng-template pTemplate="emptymessage">
124 <tr> 124 <tr>
125 <td colspan="9"> 125 <td myAutoColspan>
126 <div class="no-results"> 126 <div class="no-results">
127 <ng-container *ngIf="search" i18n>No registrations found matching current filters.</ng-container> 127 <ng-container *ngIf="search" i18n>No registrations found matching current filters.</ng-container>
128 <ng-container *ngIf="!search" i18n>No registrations found.</ng-container> 128 <ng-container *ngIf="!search" i18n>No registrations found.</ng-container>
diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html
index 28109d007..53bc6a178 100644
--- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html
+++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html
@@ -68,7 +68,7 @@
68 68
69 <ng-template pTemplate="rowexpansion" let-videoBlock> 69 <ng-template pTemplate="rowexpansion" let-videoBlock>
70 <tr> 70 <tr>
71 <td class="expand-cell" colspan="6"> 71 <td class="expand-cell" myAutoColspan>
72 <div class="d-flex moderation-expanded"> 72 <div class="d-flex moderation-expanded">
73 73
74 <div class="left"> 74 <div class="left">
@@ -87,7 +87,7 @@
87 87
88 <ng-template pTemplate="emptymessage"> 88 <ng-template pTemplate="emptymessage">
89 <tr> 89 <tr>
90 <td colspan="6"> 90 <td myAutoColspan>
91 <div class="no-results"> 91 <div class="no-results">
92 <ng-container *ngIf="search" i18n>No blocked video found matching current filters.</ng-container> 92 <ng-container *ngIf="search" i18n>No blocked video found matching current filters.</ng-container>
93 <ng-container *ngIf="!search" i18n>No blocked video found.</ng-container> 93 <ng-container *ngIf="!search" i18n>No blocked video found.</ng-container>
diff --git a/client/src/app/+admin/overview/comments/video-comment-list.component.html b/client/src/app/+admin/overview/comments/video-comment-list.component.html
index b0d8131bf..df9bccc0a 100644
--- a/client/src/app/+admin/overview/comments/video-comment-list.component.html
+++ b/client/src/app/+admin/overview/comments/video-comment-list.component.html
@@ -93,7 +93,7 @@
93 93
94 <ng-template pTemplate="rowexpansion" let-videoComment> 94 <ng-template pTemplate="rowexpansion" let-videoComment>
95 <tr> 95 <tr>
96 <td class="expand-cell" colspan="5"> 96 <td class="expand-cell" myAutoColspan>
97 <div [innerHTML]="videoComment.textHtml"></div> 97 <div [innerHTML]="videoComment.textHtml"></div>
98 </td> 98 </td>
99 </tr> 99 </tr>
@@ -101,7 +101,7 @@
101 101
102 <ng-template pTemplate="emptymessage"> 102 <ng-template pTemplate="emptymessage">
103 <tr> 103 <tr>
104 <td colspan="7"> 104 <td myAutoColspan>
105 <div class="no-results"> 105 <div class="no-results">
106 <ng-container *ngIf="search" i18n>No comments found matching current filters.</ng-container> 106 <ng-container *ngIf="search" i18n>No comments found matching current filters.</ng-container>
107 <ng-container *ngIf="!search" i18n>No comments found.</ng-container> 107 <ng-container *ngIf="!search" i18n>No comments found.</ng-container>
diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.html b/client/src/app/+admin/overview/users/user-list/user-list.component.html
index 30859a3ad..e37ad2a3e 100644
--- a/client/src/app/+admin/overview/users/user-list/user-list.component.html
+++ b/client/src/app/+admin/overview/users/user-list/user-list.component.html
@@ -146,7 +146,7 @@
146 146
147 <ng-template pTemplate="rowexpansion" let-user> 147 <ng-template pTemplate="rowexpansion" let-user>
148 <tr class="user-blocked-reason"> 148 <tr class="user-blocked-reason">
149 <td colspan="7"> 149 <td myAutoColspan>
150 <span i18n class="ban-reason-label">Ban reason:</span> 150 <span i18n class="ban-reason-label">Ban reason:</span>
151 {{ user.blockedReason }} 151 {{ user.blockedReason }}
152 </td> 152 </td>
diff --git a/client/src/app/+admin/overview/videos/video-list.component.html b/client/src/app/+admin/overview/videos/video-list.component.html
index 35b1f9dbd..c4f78cadc 100644
--- a/client/src/app/+admin/overview/videos/video-list.component.html
+++ b/client/src/app/+admin/overview/videos/video-list.component.html
@@ -100,7 +100,7 @@
100 100
101 <ng-template pTemplate="rowexpansion" let-video> 101 <ng-template pTemplate="rowexpansion" let-video>
102 <tr> 102 <tr>
103 <td class="video-info expand-cell" colspan="7"> 103 <td class="video-info expand-cell" myAutoColspan>
104 <div> 104 <div>
105 <div *ngIf="isWebTorrent(video)"> 105 <div *ngIf="isWebTorrent(video)">
106 WebTorrent: 106 WebTorrent:
diff --git a/client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.html b/client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.html
index 5356e0e03..a759e9186 100644
--- a/client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.html
+++ b/client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.html
@@ -87,7 +87,7 @@
87 87
88 <ng-template pTemplate="rowexpansion" let-runnerJob> 88 <ng-template pTemplate="rowexpansion" let-runnerJob>
89 <tr> 89 <tr>
90 <td colspan="9"> 90 <td myAutoColspan>
91 <div class="mt-2 fs-7 font-monospace"> 91 <div class="mt-2 fs-7 font-monospace">
92 Parent job: {{ runnerJob.parent?.uuid || '-' }} <br /> 92 Parent job: {{ runnerJob.parent?.uuid || '-' }} <br />
93 Processed on {{ (runnerJob.startedAt || '-') }} <br /> 93 Processed on {{ (runnerJob.startedAt || '-') }} <br />
@@ -111,7 +111,7 @@
111 111
112 <ng-template pTemplate="emptymessage"> 112 <ng-template pTemplate="emptymessage">
113 <tr> 113 <tr>
114 <td colspan="9"> 114 <td myAutoColspan>
115 <div class="no-results"> 115 <div class="no-results">
116 <ng-container i18n>No runner jobs found.</ng-container> 116 <ng-container i18n>No runner jobs found.</ng-container>
117 </div> 117 </div>
diff --git a/client/src/app/+admin/system/runners/runner-list/runner-list.component.html b/client/src/app/+admin/system/runners/runner-list/runner-list.component.html
index 606eb9afd..b131d1a74 100644
--- a/client/src/app/+admin/system/runners/runner-list/runner-list.component.html
+++ b/client/src/app/+admin/system/runners/runner-list/runner-list.component.html
@@ -51,7 +51,7 @@
51 51
52 <ng-template pTemplate="emptymessage"> 52 <ng-template pTemplate="emptymessage">
53 <tr> 53 <tr>
54 <td colspan="6"> 54 <td myAutoColspan>
55 <div class="no-results"> 55 <div class="no-results">
56 <ng-container i18n>No remote runners found.</ng-container> 56 <ng-container i18n>No remote runners found.</ng-container>
57 </div> 57 </div>
diff --git a/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html b/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html
index 2fd23e2fc..3e5cea881 100644
--- a/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html
+++ b/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html
@@ -55,7 +55,7 @@
55 55
56 <ng-template pTemplate="emptymessage"> 56 <ng-template pTemplate="emptymessage">
57 <tr> 57 <tr>
58 <td colspan="4"> 58 <td myAutoColspan>
59 <div class="no-results"> 59 <div class="no-results">
60 <ng-container i18n>No registration token found for remote runners.</ng-container> 60 <ng-container i18n>No registration token found for remote runners.</ng-container>
61 </div> 61 </div>