]>
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" class="glyphicon glyphicon-new-window" | |
15 | target="_blank" rel="noopener noreferrer" [href]="video.url" | |
16 | ></a> | |
17 | </div> | |
18 | ||
19 | <div *ngIf="!!video.originallyPublishedAt" class="attribute attribute-originally-published-at"> | |
20 | <span i18n class="attribute-label">Originally published</span> | |
21 | <span class="attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}</span> | |
22 | </div> | |
23 | ||
24 | <div class="attribute attribute-category"> | |
25 | <span i18n class="attribute-label">Category</span> | |
26 | <span *ngIf="!video.category.id" class="attribute-value">{{ video.category.label }}</span> | |
27 | <a | |
28 | *ngIf="video.category.id" class="attribute-value" | |
29 | [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }" | |
30 | >{{ video.category.label }}</a> | |
31 | </div> | |
32 | ||
33 | <div class="attribute attribute-licence"> | |
34 | <span i18n class="attribute-label">Licence</span> | |
35 | <span *ngIf="!video.licence.id" class="attribute-value">{{ video.licence.label }}</span> | |
36 | <a | |
37 | *ngIf="video.licence.id" class="attribute-value" | |
38 | [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }" | |
39 | >{{ video.licence.label }}</a> | |
40 | </div> | |
41 | ||
42 | <div class="attribute attribute-language"> | |
43 | <span i18n class="attribute-label">Language</span> | |
44 | <span *ngIf="!video.language.id" class="attribute-value">{{ video.language.label }}</span> | |
45 | <a | |
46 | *ngIf="video.language.id" class="attribute-value" | |
47 | [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }" | |
48 | >{{ video.language.label }}</a> | |
49 | </div> | |
50 | ||
51 | <div class="attribute attribute-tags"> | |
52 | <span i18n class="attribute-label">Tags</span> | |
53 | <a | |
54 | *ngFor="let tag of getVideoTags()" | |
55 | class="attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }" | |
56 | >{{ tag }}</a> | |
57 | </div> | |
58 | ||
59 | <div class="attribute attribute-duration" *ngIf="!video.isLive"> | |
60 | <span i18n class="attribute-label">Duration</span> | |
61 | <span class="attribute-value">{{ video.duration | myDurationFormatter }}</span> | |
62 | </div> |