diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-09 15:00:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-09 15:33:16 +0100 |
commit | 5cac83a78d6ba5212755fafce2ed25f7c74b04e5 (patch) | |
tree | c0aa6473f7837fdb15f1dc2c814e7efa02d78c19 /client/src/app/shared/shared-video-miniature | |
parent | 0d8de2756fdc43be61a82a96c17d12ee52ba0143 (diff) | |
download | PeerTube-5cac83a78d6ba5212755fafce2ed25f7c74b04e5.tar.gz PeerTube-5cac83a78d6ba5212755fafce2ed25f7c74b04e5.tar.zst PeerTube-5cac83a78d6ba5212755fafce2ed25f7c74b04e5.zip |
Refactor views component
Diffstat (limited to 'client/src/app/shared/shared-video-miniature')
-rw-r--r-- | client/src/app/shared/shared-video-miniature/shared-video-miniature.module.ts | 4 | ||||
-rw-r--r-- | client/src/app/shared/shared-video-miniature/video-miniature.component.html | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-video-miniature/shared-video-miniature.module.ts b/client/src/app/shared/shared-video-miniature/shared-video-miniature.module.ts index 08c8da3dd..3035bcfb3 100644 --- a/client/src/app/shared/shared-video-miniature/shared-video-miniature.module.ts +++ b/client/src/app/shared/shared-video-miniature/shared-video-miniature.module.ts | |||
@@ -4,6 +4,7 @@ import { SharedFormModule } from '../shared-forms' | |||
4 | import { SharedGlobalIconModule } from '../shared-icons' | 4 | import { SharedGlobalIconModule } from '../shared-icons' |
5 | import { SharedMainModule } from '../shared-main/shared-main.module' | 5 | import { SharedMainModule } from '../shared-main/shared-main.module' |
6 | import { SharedModerationModule } from '../shared-moderation' | 6 | import { SharedModerationModule } from '../shared-moderation' |
7 | import { SharedVideoModule } from '../shared-video' | ||
7 | import { SharedThumbnailModule } from '../shared-thumbnail' | 8 | import { SharedThumbnailModule } from '../shared-thumbnail' |
8 | import { SharedVideoLiveModule } from '../shared-video-live' | 9 | import { SharedVideoLiveModule } from '../shared-video-live' |
9 | import { SharedVideoPlaylistModule } from '../shared-video-playlist/shared-video-playlist.module' | 10 | import { SharedVideoPlaylistModule } from '../shared-video-playlist/shared-video-playlist.module' |
@@ -20,7 +21,8 @@ import { VideosSelectionComponent } from './videos-selection.component' | |||
20 | SharedVideoPlaylistModule, | 21 | SharedVideoPlaylistModule, |
21 | SharedThumbnailModule, | 22 | SharedThumbnailModule, |
22 | SharedGlobalIconModule, | 23 | SharedGlobalIconModule, |
23 | SharedVideoLiveModule | 24 | SharedVideoLiveModule, |
25 | SharedVideoModule | ||
24 | ], | 26 | ], |
25 | 27 | ||
26 | declarations: [ | 28 | declarations: [ |
diff --git a/client/src/app/shared/shared-video-miniature/video-miniature.component.html b/client/src/app/shared/shared-video-miniature/video-miniature.component.html index 395a4df97..7a6df7b64 100644 --- a/client/src/app/shared/shared-video-miniature/video-miniature.component.html +++ b/client/src/app/shared/shared-video-miniature/video-miniature.component.html | |||
@@ -28,9 +28,8 @@ | |||
28 | 28 | ||
29 | <span class="views" [title]="video.getExactNumberOfViews()"> | 29 | <span class="views" [title]="video.getExactNumberOfViews()"> |
30 | <ng-container *ngIf="displayOptions.date && displayOptions.views"> • </ng-container> | 30 | <ng-container *ngIf="displayOptions.date && displayOptions.views"> • </ng-container> |
31 | <ng-container i18n *ngIf="displayOptions.views"> | 31 | |
32 | {video.views, plural, =1 {1 view} other {{{ video.views | myNumberFormatter }} views}} | 32 | <my-video-views-counter *ngIf="displayOptions.views" [video]="video"></my-video-views-counter> |
33 | </ng-container> | ||
34 | </span> | 33 | </span> |
35 | </span> | 34 | </span> |
36 | 35 | ||