<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>
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',
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`,