diff options
author | Florian CUNY <poslovitch@bentobox.world> | 2022-05-31 16:01:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 16:01:11 +0200 |
commit | c6f8ca4d6596572de981162983bd02eb2613791d (patch) | |
tree | f2ff530c1e1888202d0208837dfc928f1388a6e3 /client/src/app/+my-library | |
parent | b0185d7351f71bbc5ccbeed5bba86a619a7de70b (diff) | |
download | PeerTube-c6f8ca4d6596572de981162983bd02eb2613791d.tar.gz PeerTube-c6f8ca4d6596572de981162983bd02eb2613791d.tar.zst PeerTube-c6f8ca4d6596572de981162983bd02eb2613791d.zip |
Added "total views" in the my channels list (#5007)
* Added "total views" in the my channels list
Implements https://github.com/Chocobozzz/PeerTube/issues/4331
* Fix lint
* applied suggested change
* updated openAPI spec for the use "withStats" when getting video channels
* applied code change
* removed GROUP BY in query
* Fixed test
Diffstat (limited to 'client/src/app/+my-library')
-rw-r--r-- | client/src/app/+my-library/+my-video-channels/my-video-channels.component.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html index e7003f1e4..f17f62bba 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html +++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html | |||
@@ -36,6 +36,8 @@ | |||
36 | 36 | ||
37 | <div i18n class="video-channel-videos">{videoChannel.videosCount, plural, =0 {No videos} =1 {1 video} other {{{ videoChannel.videosCount }} videos}}</div> | 37 | <div i18n class="video-channel-videos">{videoChannel.videosCount, plural, =0 {No videos} =1 {1 video} other {{{ videoChannel.videosCount }} videos}}</div> |
38 | 38 | ||
39 | <div i18n class="video-channel-views">{videoChannel.totalViews, plural, =0 {No views} =1 {1 view} other {{{ videoChannel.totalViews }} views}}</div> | ||
40 | |||
39 | <div class="video-channel-buttons"> | 41 | <div class="video-channel-buttons"> |
40 | <my-edit-button label [routerLink]="[ '/manage/update', videoChannel.nameWithHost ]"></my-edit-button> | 42 | <my-edit-button label [routerLink]="[ '/manage/update', videoChannel.nameWithHost ]"></my-edit-button> |
41 | <my-delete-button label (click)="deleteVideoChannel(videoChannel)"></my-delete-button> | 43 | <my-delete-button label (click)="deleteVideoChannel(videoChannel)"></my-delete-button> |