]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.html
Provide origin URL to client and fix remote share
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / shared / metadata / video-attributes.component.html
CommitLineData
7e8f1960
C
1<div class="attribute">
2 <span i18n class="attribute-label">Privacy</span>
3 <span class="attribute-value">{{ video.privacy.label }}</span>
c894a1ea
C
4</div>
5
7e8f1960
C
6<div *ngIf="video.isLocal === false" class="attribute">
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"
ab4001aa 15 target="_blank" rel="noopener noreferrer" [href]="video.url"
7e8f1960 16 ></a>
c894a1ea
C
17</div>
18
7e8f1960
C
19<div *ngIf="!!video.originallyPublishedAt" class="attribute">
20 <span i18n class="attribute-label">Originally published</span>
21 <span class="attribute-value">{{ video.originallyPublishedAt | date: 'dd MMMM yyyy' }}</span>
c894a1ea
C
22</div>
23
7e8f1960
C
24<div class="attribute">
25 <span i18n class="attribute-label">Category</span>
26 <span *ngIf="!video.category.id" class="attribute-value">{{ video.category.label }}</span>
c894a1ea 27 <a
7e8f1960 28 *ngIf="video.category.id" class="attribute-value"
c894a1ea
C
29 [routerLink]="[ '/search' ]" [queryParams]="{ categoryOneOf: [ video.category.id ] }"
30 >{{ video.category.label }}</a>
31</div>
32
7e8f1960
C
33<div class="attribute">
34 <span i18n class="attribute-label">Licence</span>
35 <span *ngIf="!video.licence.id" class="attribute-value">{{ video.licence.label }}</span>
c894a1ea 36 <a
7e8f1960 37 *ngIf="video.licence.id" class="attribute-value"
c894a1ea
C
38 [routerLink]="[ '/search' ]" [queryParams]="{ licenceOneOf: [ video.licence.id ] }"
39 >{{ video.licence.label }}</a>
40</div>
41
7e8f1960
C
42<div class="attribute">
43 <span i18n class="attribute-label">Language</span>
44 <span *ngIf="!video.language.id" class="attribute-value">{{ video.language.label }}</span>
c894a1ea 45 <a
7e8f1960 46 *ngIf="video.language.id" class="attribute-value"
c894a1ea
C
47 [routerLink]="[ '/search' ]" [queryParams]="{ languageOneOf: [ video.language.id ] }"
48 >{{ video.language.label }}</a>
49</div>
50
7e8f1960
C
51<div class="attribute attribute-tags">
52 <span i18n class="attribute-label">Tags</span>
c894a1ea
C
53 <a
54 *ngFor="let tag of getVideoTags()"
7e8f1960 55 class="attribute-value" [routerLink]="[ '/search' ]" [queryParams]="{ tagsOneOf: [ tag ] }"
c894a1ea
C
56 >{{ tag }}</a>
57</div>
58
7e8f1960
C
59<div class="attribute" *ngIf="!video.isLive">
60 <span i18n class="attribute-label">Duration</span>
61 <span class="attribute-value">{{ video.duration | myDurationFormatter }}</span>
c894a1ea 62</div>