ActivityPub-federated video streaming platform using P2P directly in your web browser
Add help to understand what is a view
Chocobozzz822f50fa814e
diff --git a/client/src/app/+stats/video/video-stats.component.html b/client/src/app/+stats/video/video-stats.component.htmlindex e5412f1b81..2cd47bb26d 100644--- a/client/src/app/+stats/video/video-stats.component.html+++ b/client/src/app/+stats/video/video-stats.component.html@@ -4,7 +4,13 @@<div class="stats-embed"><div class="global-stats"><div *ngFor="let card of globalStatsCards" class="card stats-card">- <div class="label">{{ card.label }}</div>+ <div class="label">+ {{ card.label }}++ <my-help *ngIf="card.help">+ <ng-template ptTemplate="customHtml">{{ card.help }}</ng-template>+ </my-help>+ </div><div class="value">{{ card.value }}</div><div *ngIf="card.moreInfo" class="more-info">{{ card.moreInfo }}</div></div>diff --git a/client/src/app/+stats/video/video-stats.component.ts b/client/src/app/+stats/video/video-stats.component.tsindex f433259ef9..b6b71d4630 100644--- a/client/src/app/+stats/video/video-stats.component.ts+++ b/client/src/app/+stats/video/video-stats.component.ts@@ -30,7 +30,7 @@ type ChartBuilderResult = {displayLegend: boolean}-type Card = { label: string, value: string | number, moreInfo?: string }+type Card = { label: string, value: string | number, moreInfo?: string, help?: string }@Component({templateUrl: './video-stats.component.html',@@ -252,7 +252,8 @@ export class VideoStatsComponent implements OnInit {this.globalStatsCards = [{label: $localize`Views`,- value: this.numberFormatter.transform(this.video.views)+ value: this.numberFormatter.transform(this.video.views),+ help: $localize`A view means that someone watched the video for at least 30 seconds`},{label: $localize`Likes`,