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