aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>2022-02-03 00:44:06 +0100
committerChocobozzz <chocobozzz@cpy.re>2022-02-03 10:38:47 +0100
commit692a231026a247a61f7b3f541935b075b513f70e (patch)
tree28b0b598df52129b8496578533ef42ea1043bfea /client/src/app
parentcd8f207a8ea3fecd5697ee9b24a968c2c0c140c4 (diff)
downloadPeerTube-692a231026a247a61f7b3f541935b075b513f70e.tar.gz
PeerTube-692a231026a247a61f7b3f541935b075b513f70e.tar.zst
PeerTube-692a231026a247a61f7b3f541935b075b513f70e.zip
video-playlist: show date and views count
closes #4396
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/shared/shared-video-playlist/shared-video-playlist.module.ts4
-rw-r--r--client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.html8
2 files changed, 11 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-video-playlist/shared-video-playlist.module.ts b/client/src/app/shared/shared-video-playlist/shared-video-playlist.module.ts
index 0566b1592..e63859cdf 100644
--- a/client/src/app/shared/shared-video-playlist/shared-video-playlist.module.ts
+++ b/client/src/app/shared/shared-video-playlist/shared-video-playlist.module.ts
@@ -4,6 +4,7 @@ import { SharedFormModule } from '../shared-forms'
4import { SharedGlobalIconModule } from '../shared-icons' 4import { SharedGlobalIconModule } from '../shared-icons'
5import { SharedMainModule } from '../shared-main/shared-main.module' 5import { SharedMainModule } from '../shared-main/shared-main.module'
6import { SharedThumbnailModule } from '../shared-thumbnail' 6import { SharedThumbnailModule } from '../shared-thumbnail'
7import { SharedVideoModule } from '../shared-video'
7import { VideoAddToPlaylistComponent } from './video-add-to-playlist.component' 8import { VideoAddToPlaylistComponent } from './video-add-to-playlist.component'
8import { VideoPlaylistElementMiniatureComponent } from './video-playlist-element-miniature.component' 9import { VideoPlaylistElementMiniatureComponent } from './video-playlist-element-miniature.component'
9import { VideoPlaylistMiniatureComponent } from './video-playlist-miniature.component' 10import { VideoPlaylistMiniatureComponent } from './video-playlist-miniature.component'
@@ -14,7 +15,8 @@ import { VideoPlaylistService } from './video-playlist.service'
14 SharedMainModule, 15 SharedMainModule,
15 SharedFormModule, 16 SharedFormModule,
16 SharedThumbnailModule, 17 SharedThumbnailModule,
17 SharedGlobalIconModule 18 SharedGlobalIconModule,
19 SharedVideoModule
18 ], 20 ],
19 21
20 declarations: [ 22 declarations: [
diff --git a/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.html b/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.html
index e74f58f47..9cdee96b4 100644
--- a/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.html
+++ b/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.html
@@ -20,6 +20,14 @@
20 [attr.title]="playlistElement.video.name" 20 [attr.title]="playlistElement.video.name"
21 >{{ playlistElement.video.name }}</a> 21 >{{ playlistElement.video.name }}</a>
22 22
23 <span class="video-miniature-created-at-views">
24 <my-date-toggle [date]="playlistElement.video.publishedAt"></my-date-toggle>
25
26 <span class="views" [title]="playlistElement.video.getExactNumberOfViews()">
27 • <my-video-views-counter [video]="playlistElement.video"></my-video-views-counter>
28 </span>
29 </span>
30
23 <a *ngIf="accountLink" tabindex="-1" class="video-info-account" [routerLink]="[ '/a', playlistElement.video.byAccount ]"> 31 <a *ngIf="accountLink" tabindex="-1" class="video-info-account" [routerLink]="[ '/a', playlistElement.video.byAccount ]">
24 {{ playlistElement.video.byAccount }} 32 {{ playlistElement.video.byAccount }}
25 </a> 33 </a>