1
0
Fork 0

video-playlist: show date and views count

closes #4396
This commit is contained in:
kontrollanten 2022-02-03 00:44:06 +01:00 committed by Chocobozzz
parent cd8f207a8e
commit 692a231026
2 changed files with 11 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import { SharedFormModule } from '../shared-forms'
import { SharedGlobalIconModule } from '../shared-icons'
import { SharedMainModule } from '../shared-main/shared-main.module'
import { SharedThumbnailModule } from '../shared-thumbnail'
import { SharedVideoModule } from '../shared-video'
import { VideoAddToPlaylistComponent } from './video-add-to-playlist.component'
import { VideoPlaylistElementMiniatureComponent } from './video-playlist-element-miniature.component'
import { VideoPlaylistMiniatureComponent } from './video-playlist-miniature.component'
@ -14,7 +15,8 @@ import { VideoPlaylistService } from './video-playlist.service'
SharedMainModule,
SharedFormModule,
SharedThumbnailModule,
SharedGlobalIconModule
SharedGlobalIconModule,
SharedVideoModule
],
declarations: [

View File

@ -20,6 +20,14 @@
[attr.title]="playlistElement.video.name"
>{{ playlistElement.video.name }}</a>
<span class="video-miniature-created-at-views">
<my-date-toggle [date]="playlistElement.video.publishedAt"></my-date-toggle>
<span class="views" [title]="playlistElement.video.getExactNumberOfViews()">
<my-video-views-counter [video]="playlistElement.video"></my-video-views-counter>
</span>
</span>
<a *ngIf="accountLink" tabindex="-1" class="video-info-account" [routerLink]="[ '/a', playlistElement.video.byAccount ]">
{{ playlistElement.video.byAccount }}
</a>