]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/video-watch/video-watch.component.html
Better skin for videojs
[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 16<div class="row">
897ec54d
C
17 <!-- We need the video container for videojs so we just hide it -->
18 <div [hidden]="videoNotFound" class="embed-responsive embed-responsive-19by9">
e14852b4 19 <video id="video-container" class="video-js vjs-sublime-skin"></video>
d1992b93 20 </div>
897ec54d
C
21
22 <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div>
dc8bc31b 23</div>
da932efc 24
1f0215a9 25<!-- P2P informations -->
d1992b93 26<div id="torrent-info" class="row">
a64668c0
C
27 <div id="torrent-info-download" class="col-md-4 col-sm-4 col-xs-4">Download: {{ downloadSpeed | bytes }}/s</div>
28 <div id="torrent-info-upload" class="col-md-4 col-sm-4 col-xs-4">Upload: {{ uploadSpeed | bytes }}/s</div>
29 <div id="torrent-info-peers" class="col-md-4 col-sm-4 col-xs-4">Number of peers: {{ numPeers }}</div>
d1992b93
C
30</div>
31
1f0215a9 32<!-- Video informations -->
d1992b93 33<div *ngIf="video !== null" id="video-info">
09223546 34 <div class="row video-name-views">
3eeeb87f 35 <div class="col-xs-8 col-md-8 video-name">
09223546
C
36 {{ video.name }}
37 </div>
d1992b93 38
3eeeb87f 39 <div class="col-xs-4 col-md-4 pull-right video-views">
09223546 40 {{ video.views}} views
d1992b93 41 </div>
09223546 42 </div>
d1992b93 43
09223546 44 <div class="row video-small-blocks">
3eeeb87f 45 <div class="col-xs-5 col-xs-3 col-md-3 video-small-block video-small-block-author">
09223546
C
46 <a title="Access to all videos of this user" [routerLink]="['/videos/list', { field: 'author', search: video.author }]">
47 {{ video.by }}
48 </a>
49 </div>
d38b8281 50
3eeeb87f 51 <div class="col-xs-2 col-md-3 video-small-block video-small-block-share">
09223546
C
52 <a class="option" (click)="showShareModal()" title="Share the video">
53 <span class="glyphicon glyphicon-share"></span>
54 <span class="video-small-block-text">Share</span>
55 </a>
56 </div>
99cc4f49 57
3eeeb87f 58 <div class="col-xs-2 col-md-3 video-small-block video-small-block-more">
09223546
C
59 <div class="video-small-block-dropdown" dropdown dropup="true" placement="right">
60 <a class="option" title="Access to more options" dropdownToggle>
61 <span class="glyphicon glyphicon-option-horizontal"></span>
62 <span class="video-small-block-text">More</span>
63 </a>
05a9feaa 64
ad42bea3 65 <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button">
d8e689b8
C
66 <li *ngIf="canUserUpdateVideo()" role="menuitem">
67 <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.id ]">
68 <span class="glyphicon glyphicon-pencil"></span> Update
69 </a>
70 </li>
71
4f8c0eb0 72 <li role="menuitem">
05a9feaa 73 <a class="dropdown-item" title="Get magnet URI" href="#" (click)="showMagnetUriModal($event)">
09223546 74 <span class="glyphicon glyphicon-magnet"></span> Magnet
05a9feaa
C
75 </a>
76 </li>
77
78 <li *ngIf="isUserLoggedIn()" role="menuitem">
79 <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)">
4f8c0eb0
C
80 <span class="glyphicon glyphicon-alert"></span> Report
81 </a>
82 </li>
198b205c 83
ab683a8e
C
84 <li *ngIf="isVideoRemovable()" role="menuitem">
85 <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)">
86 <span class="glyphicon glyphicon-remove"></span> Delete
87 </a>
88 </li>
89
90 <li *ngIf="isVideoBlacklistable()" role="menuitem">
91 <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)">
92 <span class="glyphicon glyphicon-eye-close"></span> Blacklist
93 </a>
94 </li>
4f8c0eb0
C
95 </ul>
96 </div>
d1992b93 97 </div>
d1992b93 98
3eeeb87f 99 <div class="col-xs-3 col-md-3 video-small-block video-small-block-rating">
09223546
C
100 <div class="video-small-block-like">
101 <span
102 class="glyphicon glyphicon-thumbs-up" title="Like this video"
103 [ngClass]="{ 'interactive': isUserLoggedIn(), 'activated': userRating === 'like' }" (click)="setLike()"
104 ></span>
05a9feaa 105
09223546
C
106 <span class="video-small-block-text">
107 {{ video.likes }}
108 </span>
109 </div>
d1992b93 110
09223546
C
111 <div class="video-small-block-dislike">
112 <span
113 class="glyphicon glyphicon-thumbs-down" title="Dislike this video"
114 [ngClass]="{ 'interactive': isUserLoggedIn(), 'activated': userRating === 'dislike' }" (click)="setDislike()"
115 ></span>
6e07c3de 116
09223546
C
117 <span class="video-small-block-text">
118 {{ video.dislikes }}
119 </span>
120 </div>
d07137b9
C
121 </div>
122 </div>
123
09223546 124 <div class="row video-details">
3eeeb87f 125 <div class="video-details-date-description col-xs-8 col-md-9">
09223546
C
126 <div class="video-details-date">
127 Published on {{ video.createdAt | date:'short' }}
128 </div>
129
130 <div class="video-details-description">
131 {{ video.description }}
132 </div>
db216afd 133 </div>
db216afd 134
3eeeb87f 135 <div class="video-details-attributes col-xs-4 col-md-3">
09223546
C
136 <div class="video-details-attribute">
137 <span class="video-details-attribute-label">
138 Category:
139 </span>
140 <span class="video-details-attribute-value">
141 {{ video.categoryLabel }}
142 </span>
143 </div>
144
145 <div class="video-details-attribute">
146 <span class="video-details-attribute-label">
147 Licence:
148 </span>
149 <span class="video-details-attribute-value">
150 {{ video.licenceLabel }}
151 </span>
152 </div>
153
154 <div class="video-details-attribute">
155 <span class="video-details-attribute-label">
156 Language:
157 </span>
158 <span class="video-details-attribute-value">
159 {{ video.languageLabel }}
160 </span>
161 </div>
8ce9e815
C
162
163 <div class="video-details-attribute">
164 <span class="video-details-attribute-label">
165 Tags:
166 </span>
167
168 <div class="video-details-tags">
169 <a *ngFor="let tag of video.tags" [routerLink]="['/videos/list', { field: 'tags', search: tag }]" class="label label-primary">
170 {{ tag }}
171 </a>
172 </div>
173 </div>
174
d1992b93
C
175 </div>
176 </div>
177</div>
178
ad42bea3 179<ng-template [ngIf]="video !== null">
4f8c0eb0
C
180 <my-video-share #videoShareModal [video]="video"></my-video-share>
181 <my-video-magnet #videoMagnetModal [video]="video"></my-video-magnet>
182 <my-video-report #videoReportModal [video]="video"></my-video-report>
ad42bea3 183</ng-template>