]>
Commit | Line | Data |
---|---|---|
1 | <div class="attribute attribute-privacy"> | |
2 | <span i18n class="attribute-label">Privacy</span> | |
3 | <span class="attribute-value">{{ video.privacy.label }}</span> | |
4 | </div> | |
5 | ||
6 | <div *ngIf="video.isLocal === false" class="attribute attribute-origin"> | |
7 | <span i18n class="attribute-label">Origin</span> | |
8 | <a | |
9 | class="attribute-value" target="_blank" rel="noopener noreferrer" | |
10 | routerLink="/search" [queryParams]="{ host: getVideoHost() }" | |
11 | >{{ video.originInstanceHost }}</a> | |
12 | ||
13 | <a | |
14 | i18n-title title="Open the video on the origin instance" | |
15 | target="_blank" rel="noopener noreferrer" [href]="video.url" | |
16 | > | |
17 | <my-global-icon iconName="external-link"></my-global-icon> | |
18 | </a> | |
19 | </div> | |
20 | ||
21 | <div *ngIf="!!video.originallyPublishedAt" class="attribute attribute-originally-published-at"> | |
22 | <span i18n class="attribute-label">Originally published</span> | |
23 | <span class="attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}</span> | |
24 | </div> | |
25 | ||
26 | <div class="attribute attribute-category"> | |
27 | <span i18n class="attribute-label">Category</span> | |
28 | <span *ngIf="!video.category.id" class="attribute-value">{{ video.category.label }}</span> | |
29 | <a | |
30 | *ngIf="video.category.id" class="attribute-value" | |
31 | [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }" | |
32 | >{{ video.category.label }}</a> | |
33 | </div> | |
34 | ||
35 | <div class="attribute attribute-licence"> | |
36 | <span i18n class="attribute-label">Licence</span> | |
37 | <span *ngIf="!video.licence.id" class="attribute-value">{{ video.licence.label }}</span> | |
38 | <a | |
39 | *ngIf="video.licence.id" class="attribute-value" | |
40 | [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }" | |
41 | >{{ video.licence.label }}</a> | |
42 | </div> | |
43 | ||
44 | <div class="attribute attribute-language"> | |
45 | <span i18n class="attribute-label">Language</span> | |
46 | <span *ngIf="!video.language.id" class="attribute-value">{{ video.language.label }}</span> | |
47 | <a | |
48 | *ngIf="video.language.id" class="attribute-value" | |
49 | [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }" | |
50 | >{{ video.language.label }}</a> | |
51 | </div> | |
52 | ||
53 | <div class="attribute attribute-tags"> | |
54 | <span i18n class="attribute-label">Tags</span> | |
55 | <a | |
56 | *ngFor="let tag of getVideoTags()" | |
57 | class="attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }" | |
58 | >{{ tag }}</a> | |
59 | </div> | |
60 | ||
61 | <div class="attribute attribute-duration" *ngIf="!video.isLive"> | |
62 | <span i18n class="attribute-label">Duration</span> | |
63 | <span class="attribute-value">{{ video.duration | myDurationFormatter }}</span> | |
64 | </div> |