]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.html
Add tooltip to likes/dislikes bar
[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 3 <div [hidden]="videoNotFound" id="video-container">
014ad879 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>
b1fa3eba 8
20206dfb
C
9 <!-- Video information -->
10 <div *ngIf="video" class="margin-content video-bottom">
11 <div class="video-info">
12 <div class="video-info-name-actions">
13 <div class="video-info-name">{{ video.name }}</div>
d1992b93 14
20206dfb
C
15 <div class="video-info-actions">
16 <div *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" class="action-button">
17 <span class="icon icon-like" title="Like this video" (click)="setLike()"></span>
18 </div>
d38b8281 19
20206dfb
C
20 <div *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" class="action-button">
21 <span class="icon icon-dislike" title="Dislike this video" (click)="setDislike()"></span>
22 </div>
99cc4f49 23
20206dfb
C
24 <div (click)="showShareModal()" class="action-button">
25 <span class="icon icon-share"></span>
26 Share
b1fa3eba
C
27 </div>
28
20206dfb
C
29 <div class="action-more" dropdown dropup="true" placement="right">
30 <div class="action-button" dropdownToggle>
31 <span class="icon icon-more"></span>
32 </div>
33
34 <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button">
35 <li role="menuitem">
36 <a class="dropdown-item" title="Download the video" href="#" (click)="showDownloadModal($event)">
37 <span class="icon icon-download"></span> Download
38 </a>
39 </li>
40
41 <li *ngIf="isUserLoggedIn()" role="menuitem">
42 <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)">
43 <span class="icon icon-alert"></span> Report
44 </a>
45 </li>
46
47 <li *ngIf="isVideoBlacklistable()" role="menuitem">
48 <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)">
49 <span class="icon icon-blacklist"></span> Blacklist
50 </a>
51 </li>
6725d05c
C
52
53 <li *ngIf="isVideoRemovable()" role="menuitem">
54 <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)">
55 <span class="icon icon-blacklist"></span> Delete
56 </a>
57 </li>
20206dfb
C
58 </ul>
59 </div>
b1fa3eba 60 </div>
4f8c0eb0 61 </div>
d1992b93 62
20206dfb
C
63 <div class="video-info-date-views-bar">
64 <div class="video-info-date-views">
65 {{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
66 </div>
6a9e1d42 67
e9189001
C
68 <div
69 class="video-info-likes-dislikes-bar"
70 *ngIf="video.likes !== 0 || video.dislikes !== 0" [tooltip]="likesBarTooltipText">
20206dfb
C
71 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
72 </div>
6a9e1d42 73 </div>
6e07c3de 74
20206dfb
C
75 <div class="video-info-channel">
76 {{ video.channel.name }}
77 <!-- Here will be the subscribe button -->
78 </div>
d07137b9 79
20206dfb
C
80 <div class="video-info-by">
81 By {{ video.by }}
82 <img [src]="getAvatarPath()" alt="Account avatar" />
83 </div>
09223546 84
20206dfb
C
85 <div class="video-info-description">
86 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
2de96f4d 87
20206dfb
C
88 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length === 250" (click)="showMoreDescription()">
89 Show more
90 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
91 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
92 </div>
2de96f4d 93
20206dfb
C
94 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
95 Show less
96 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
97 </div>
2de96f4d 98 </div>
db216afd 99
20206dfb
C
100 <div class="video-attributes">
101 <div class="video-attribute">
102 <span class="video-attribute-label">
103 Privacy
104 </span>
105 <span class="video-attribute-value">
106 {{ video.privacyLabel }}
107 </span>
108 </div>
fd45e8f4 109
20206dfb
C
110 <div class="video-attribute">
111 <span class="video-attribute-label">
112 Category
113 </span>
114 <span class="video-attribute-value">
115 {{ video.categoryLabel }}
116 </span>
117 </div>
09223546 118
20206dfb
C
119 <div class="video-attribute">
120 <span class="video-attribute-label">
121 Licence
122 </span>
123 <span class="video-attribute-value">
124 {{ video.licenceLabel }}
125 </span>
126 </div>
09223546 127
20206dfb
C
128 <div class="video-attribute">
129 <span class="video-attribute-label">
130 Language
131 </span>
132 <span class="video-attribute-value">
133 {{ video.languageLabel }}
134 </span>
135 </div>
8ce9e815 136
20206dfb
C
137 <div class="video-attribute">
138 <span class="video-attribute-label">
139 Tags
140 </span>
8ce9e815 141
20206dfb
C
142 <span class="video-attribute-value">
143 {{ getVideoTags() }}
144 </span>
145 </div>
8ce9e815 146 </div>
b1fa3eba 147
41c3dfac
C
148 </div>
149
20206dfb
C
150 <div class="other-videos">
151 <div class="title-page title-page-single">
152 Other videos
153 </div>
154
155 <div *ngFor="let video of otherVideos">
156 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
157 </div>
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>