]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/video-watch/video-watch.component.html
Server: add video language attribute
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / video-watch / video-watch.component.html
CommitLineData
d1992b93
C
1<div *ngIf="error" class="row">
2 <div class="alert alert-danger">
3 The video load seems to be abnormally long.
4 <ul>
49abbbbe 5 <li>Maybe the server {{ video.podHost }} is down :(</li>
d1992b93
C
6 <li>
7 If not, you can report an issue on
8 <a href="https://github.com/Chocobozzz/PeerTube/issues" title="Report an issue">
9 https://github.com/Chocobozzz/PeerTube/issues
10 </a>
11 </li>
12 </ul>
13 </div>
3ad109e4
C
14</div>
15
d1992b93
C
16<div class="row">
17 <div class="col-md-12">
9c89a45c
C
18 <!-- We need the video container for videojs so we just hide it -->
19 <div [hidden]="videoNotFound" class="embed-responsive embed-responsive-19by9">
e31f6ad6 20 <video id="video-container" class="video-js vjs-default-skin vjs-big-play-centered"></video>
d1992b93 21 </div>
9c89a45c
C
22
23 <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div>
d1992b93 24 </div>
dc8bc31b 25</div>
da932efc 26
d1992b93 27<div id="torrent-info" class="row">
a64668c0
C
28 <div id="torrent-info-download" class="col-md-4 col-sm-4 col-xs-4">Download: {{ downloadSpeed | bytes }}/s</div>
29 <div id="torrent-info-upload" class="col-md-4 col-sm-4 col-xs-4">Upload: {{ uploadSpeed | bytes }}/s</div>
30 <div id="torrent-info-peers" class="col-md-4 col-sm-4 col-xs-4">Number of peers: {{ numPeers }}</div>
d1992b93
C
31</div>
32
33<div *ngIf="video !== null" id="video-info">
34 <div class="row" id="video-name-actions">
d38b8281 35 <div class="col-md-6">
d1992b93
C
36 <div class="row">
37 <div id="video-name" class="col-md-12">
38 {{ video.name }}
39 </div>
40 </div>
41
42 <div class="row">
43 <div class="col-md-12" id="video-by-date">
44 <span id="video-by">
45 from
46 <a [routerLink]="['/videos/list', { field: 'author', search: video.author }]" class="video-miniature-author">
47 {{ video.by }}
48 </a>
49 </span>
feb4bdfd 50 <span id="video-date">on {{ video.createdAt | date:'short' }}</span>
d1992b93
C
51 </div>
52 </div>
53 </div>
54
d38b8281
C
55 <div id="video-actions" class="col-md-6 text-right">
56 <div id="rates">
57 <button
58 id="likes" class="btn btn-default"
59 [ngClass]="{ 'not-interactive-btn': !isUserLoggedIn(), 'activated-btn': userRating === 'like' }" (click)="setLike()"
60 >
61 <span class="glyphicon glyphicon-thumbs-up"></span> {{ video.likes }}
62 </button>
63
64 <button
65 id="dislikes" class="btn btn-default"
66 [ngClass]="{ 'not-interactive-btn': !isUserLoggedIn(), 'activated-btn': userRating === 'dislike' }" (click)="setDislike()"
67 >
68 <span class=" glyphicon glyphicon-thumbs-down"></span> {{ video.dislikes }}
69 </button>
70 </div>
71
99cc4f49
C
72 <button id="share" class="btn btn-default" (click)="showShareModal()">
73 <span class="glyphicon glyphicon-share"></span> Share
74 </button>
75
05a9feaa 76 <div class="btn-group" dropdown>
4f8c0eb0
C
77 <button id="single-button" type="button" id="more" class="btn btn-default" dropdownToggle>
78 <span class="glyphicon glyphicon-option-horizontal"></span> More
79 </button>
05a9feaa 80
4f8c0eb0
C
81 <ul dropdownMenu id="more-menu" role="menu" aria-labelledby="single-button">
82 <li role="menuitem">
05a9feaa
C
83 <a class="dropdown-item" title="Get magnet URI" href="#" (click)="showMagnetUriModal($event)">
84 <span class="glyphicon glyphicon-magnet"></span> Magnet
85 </a>
86 </li>
87
88 <li *ngIf="isUserLoggedIn()" role="menuitem">
89 <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)">
4f8c0eb0
C
90 <span class="glyphicon glyphicon-alert"></span> Report
91 </a>
92 </li>
93 </ul>
94 </div>
d1992b93
C
95 </div>
96 </div>
97
05a9feaa
C
98 <div id="video-tags-views" class="row">
99 <div class="col-md-8">
d1992b93
C
100 <a *ngFor="let tag of video.tags" [routerLink]="['/videos/list', { field: 'tags', search: tag }]" class="label label-primary">
101 {{ tag }}
102 </a>
103 </div>
05a9feaa
C
104
105 <div id="video-views" class="col-md-4 text-right">
106 {{ video.views }} views
107 </div>
d1992b93
C
108 </div>
109
6e07c3de
C
110 <div id="video-category" class="row">
111 <div class="col-md-12">
112 <span id="category-label">Category:</span>
113 {{ video.categoryLabel }}
114 </div>
115 </div>
116
d07137b9
C
117 <div id="video-licence" class="row">
118 <div class="col-md-12">
119 <span id="licence-label">Licence:</span>
120 {{ video.licenceLabel }}
121 </div>
122 </div>
123
d1992b93
C
124 <div id="video-description" class="row">
125 <div class="col-md-12">
126 <div id="description-label">Description</div>
127 {{ video.description }}
128 </div>
129 </div>
130</div>
131
4f8c0eb0
C
132<template [ngIf]="video !== null">
133 <my-video-share #videoShareModal [video]="video"></my-video-share>
134 <my-video-magnet #videoMagnetModal [video]="video"></my-video-magnet>
135 <my-video-report #videoReportModal [video]="video"></my-video-report>
136</template>