]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.html
Begin video watch design
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch.component.html
CommitLineData
d1992b93 1<div class="row">
897ec54d 2 <!-- We need the video container for videojs so we just hide it -->
be6a4802
C
3 <div [hidden]="videoNotFound" id="video-container">
4 <video id="video-element" class="video-js vjs-peertube-skin"></video>
d1992b93 5 </div>
897ec54d
C
6
7 <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div>
dc8bc31b 8</div>
da932efc 9
d6e32a2e 10<!-- Video information -->
b1fa3eba
C
11<div *ngIf="video" class="margin-content video-bottom">
12 <div class="video-info">
13 <div class="video-info-name-actions">
14 <div class="video-info-name">{{ video.name }}</div>
15
16 <div class="video-info-actions">
17 <div class="action-button">
18 <span
19 class="icon icon-like" title="Like this video"
20 [ngClass]="{ 'interactive': isUserLoggedIn(), 'activated': userRating === 'like' }" (click)="setLike()"
21 ></span>
22 </div>
d1992b93 23
b1fa3eba
C
24 <div class="action-button">
25 <span
26 class="icon icon-dislike" title="Dislike this video"
27 [ngClass]="{ 'interactive': isUserLoggedIn(), 'activated': userRating === 'dislike' }" (click)="setDislike()"
28 ></span>
29 </div>
d38b8281 30
b1fa3eba
C
31 <div (click)="showShareModal()" class="action-button">
32 <span class="icon icon-share"></span>
33 Share
34 </div>
99cc4f49 35
b1fa3eba
C
36 <div class="action-more" dropdown dropup="true" placement="right">
37 <div class="action-button" dropdownToggle>
38 <span class="icon icon-more"></span>
39 </div>
40
41 <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button">
42 <li *ngIf="canUserUpdateVideo()" role="menuitem">
43 <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.uuid ]">
44 <span class="glyphicon glyphicon-pencil"></span> Update
45 </a>
46 </li>
47
48 <li role="menuitem">
49 <a class="dropdown-item" title="Download the video" href="#" (click)="showDownloadModal($event)">
50 <span class="glyphicon glyphicon-download-alt"></span> Download
51 </a>
52 </li>
53
54 <li *ngIf="isUserLoggedIn()" role="menuitem">
55 <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)">
56 <span class="glyphicon glyphicon-alert"></span> Report
57 </a>
58 </li>
59
60 <li *ngIf="isVideoRemovable()" role="menuitem">
61 <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)">
62 <span class="glyphicon glyphicon-remove"></span> Delete
63 </a>
64 </li>
65
66 <li *ngIf="isVideoBlacklistable()" role="menuitem">
67 <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)">
68 <span class="glyphicon glyphicon-eye-close"></span> Blacklist
69 </a>
70 </li>
71 </ul>
72 </div>
4f8c0eb0 73 </div>
d1992b93 74 </div>
d1992b93 75
b1fa3eba
C
76 <div class="video-info-date-views">
77 {{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
78 </div>
6e07c3de 79
b1fa3eba
C
80 <div class="video-info-channel">
81 {{ video.channel.name }}
82 <!-- Here will be the subscribe button -->
d07137b9 83 </div>
d07137b9 84
b1fa3eba
C
85 <div class="video-info-by">
86 By {{ video.by }}
87 <img [src]="getAvatarPath()" alt="Account avatar" />
88 </div>
09223546 89
b1fa3eba
C
90 <div class="video-info-description">
91 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
2de96f4d 92
b1fa3eba 93 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description.length === 250" (click)="showMoreDescription()">
2de96f4d 94 Show more
80958c78
C
95 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
96 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
2de96f4d
C
97 </div>
98
b1fa3eba 99 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
2de96f4d 100 Show less
80958c78 101 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
2de96f4d 102 </div>
db216afd 103 </div>
db216afd 104
b1fa3eba
C
105 <div class="video-attributes">
106 <div class="video-attribute">
107 <span class="video-attribute-label">
108 Privacy
fd45e8f4 109 </span>
b1fa3eba 110 <span class="video-attribute-value">
fd45e8f4
C
111 {{ video.privacyLabel }}
112 </span>
113 </div>
114
b1fa3eba
C
115 <div class="video-attribute">
116 <span class="video-attribute-label">
117 Category
09223546 118 </span>
b1fa3eba 119 <span class="video-attribute-value">
09223546
C
120 {{ video.categoryLabel }}
121 </span>
122 </div>
123
b1fa3eba
C
124 <div class="video-attribute">
125 <span class="video-attribute-label">
126 Licence
09223546 127 </span>
b1fa3eba 128 <span class="video-attribute-value">
09223546
C
129 {{ video.licenceLabel }}
130 </span>
131 </div>
132
b1fa3eba
C
133 <div class="video-attribute">
134 <span class="video-attribute-label">
135 Language
09223546 136 </span>
b1fa3eba 137 <span class="video-attribute-value">
09223546
C
138 {{ video.languageLabel }}
139 </span>
140 </div>
8ce9e815 141
b1fa3eba
C
142 <div class="video-attribute">
143 <span class="video-attribute-label">
144 Tags
8ce9e815
C
145 </span>
146
b1fa3eba
C
147 <span class="video-attribute-value">
148 {{ getVideoTags() }}
149 </span>
8ce9e815 150 </div>
b1fa3eba
C
151 </div>
152
153 </div>
8ce9e815 154
b1fa3eba
C
155 <div class="other-videos">
156 <div *ngFor="let video of otherVideos">
157 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
d1992b93
C
158 </div>
159 </div>
160</div>
161
ad42bea3 162<ng-template [ngIf]="video !== null">
4f8c0eb0 163 <my-video-share #videoShareModal [video]="video"></my-video-share>
a96aed15 164 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
4f8c0eb0 165 <my-video-report #videoReportModal [video]="video"></my-video-report>
ad42bea3 166</ng-template>