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