]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/video-watch.component.html
Fix video watch page responsive
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch.component.html
1 <div class="row">
2 <!-- We need the video container for videojs so we just hide it -->
3 <div [hidden]="videoNotFound" id="video-element-wrapper">
4 </div>
5
6 <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div>
7
8 <!-- Video information -->
9 <div *ngIf="video" class="margin-content video-bottom">
10 <div class="video-info">
11 <div class="video-info-first-row">
12 <div>
13 <div class="video-info-name">{{ video.name }}</div>
14
15 <div class="video-info-date-views">
16 {{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
17 </div>
18
19 <div class="video-info-channel">
20 {{ video.channel.displayName }}
21 <!-- Here will be the subscribe button -->
22 </div>
23
24 <div class="video-info-by">
25 By {{ video.by }}
26 <img [src]="getAvatarPath()" alt="Account avatar" />
27 </div>
28 </div>
29
30 <div class="video-actions-rates">
31 <div class="video-actions">
32 <div
33 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
34 class="action-button action-button-like"
35 >
36 <span class="icon icon-like" title="Like this video" ></span>
37 </div>
38
39 <div
40 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
41 class="action-button action-button-dislike"
42 >
43 <span class="icon icon-dislike" title="Dislike this video"></span>
44 </div>
45
46 <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support">
47 <span class="icon icon-support"></span>
48 <span class="icon-text">Support</span>
49 </div>
50
51 <div (click)="showShareModal()" class="action-button action-button-share">
52 <span class="icon icon-share"></span>
53 <span class="icon-text">Share</span>
54 </div>
55
56 <div class="action-more" dropdown dropup="true" placement="right">
57 <div class="action-button" dropdownToggle>
58 <span class="icon icon-more"></span>
59 </div>
60
61 <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button">
62 <li role="menuitem">
63 <a class="dropdown-item" title="Download the video" href="#" (click)="showDownloadModal($event)">
64 <span class="icon icon-download"></span> Download
65 </a>
66 </li>
67
68 <li *ngIf="isUserLoggedIn()" role="menuitem">
69 <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)">
70 <span class="icon icon-alert"></span> Report
71 </a>
72 </li>
73
74 <li *ngIf="isVideoBlacklistable()" role="menuitem">
75 <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)">
76 <span class="icon icon-blacklist"></span> Blacklist
77 </a>
78 </li>
79
80 <li *ngIf="isVideoUpdatable()" role="menuitem">
81 <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.uuid ]">
82 <span class="icon icon-edit"></span> Update
83 </a>
84 </li>
85
86 <li *ngIf="isVideoRemovable()" role="menuitem">
87 <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)">
88 <span class="icon icon-blacklist"></span> Delete
89 </a>
90 </li>
91 </ul>
92 </div>
93 </div>
94
95 <div
96 class="video-info-likes-dislikes-bar"
97 *ngIf="video.likes !== 0 || video.dislikes !== 0" [tooltip]="likesBarTooltipText">
98 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
99 </div>
100 </div>
101 </div>
102
103 <div class="video-info-description">
104 <div class="video-info-description-html" [innerHTML]="videoHTMLDescription"></div>
105
106 <div class="video-info-description-more" *ngIf="completeDescriptionShown === false && video.description?.length >= 250" (click)="showMoreDescription()">
107 Show more
108 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-down"></span>
109 <my-loader class="description-loading" [loading]="descriptionLoading"></my-loader>
110 </div>
111
112 <div *ngIf="completeDescriptionShown === true" (click)="showLessDescription()" class="video-info-description-more">
113 Show less
114 <span *ngIf="descriptionLoading === false" class="glyphicon glyphicon-menu-up"></span>
115 </div>
116 </div>
117
118 <div class="video-attributes">
119 <div class="video-attribute">
120 <span class="video-attribute-label">
121 Privacy
122 </span>
123 <span class="video-attribute-value">
124 {{ video.privacy.label }}
125 </span>
126 </div>
127
128 <div class="video-attribute">
129 <span class="video-attribute-label">
130 Category
131 </span>
132 <span class="video-attribute-value">
133 {{ video.category.label }}
134 </span>
135 </div>
136
137 <div class="video-attribute">
138 <span class="video-attribute-label">
139 Licence
140 </span>
141 <span class="video-attribute-value">
142 {{ video.licence.label }}
143 </span>
144 </div>
145
146 <div class="video-attribute">
147 <span class="video-attribute-label">
148 Language
149 </span>
150 <span class="video-attribute-value">
151 {{ video.language.label }}
152 </span>
153 </div>
154
155 <div class="video-attribute">
156 <span class="video-attribute-label">
157 Tags
158 </span>
159
160 <span class="video-attribute-value">
161 {{ getVideoTags() }}
162 </span>
163 </div>
164 </div>
165
166 <my-video-comments [video]="video" [user]="user"></my-video-comments>
167 </div>
168
169 <div class="other-videos">
170 <div class="title-page title-page-single">
171 Other videos
172 </div>
173
174 <div *ngFor="let video of otherVideosDisplayed">
175 <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
176 </div>
177 </div>
178 </div>
179
180
181 <div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
182 <strong>Friendly Reminder:</strong>
183 <div class="privacy-concerns-text">
184 The sharing system used by this video implies that some technical information about your system (such as a public IP address) can be accessed publicly.
185 <a title="Get more information" target="_blank" rel="noopener noreferrer" href="/about#p2p-privacy">More information</a>
186 </div>
187
188 <div class="privacy-concerns-okay" (click)="acceptedPrivacyConcern()">
189 OK
190 </div>
191 </div>
192 </div>
193
194 <ng-template [ngIf]="video !== null">
195 <my-video-support #videoSupportModal [video]="video"></my-video-support>
196 <my-video-share #videoShareModal [video]="video"></my-video-share>
197 <my-video-download #videoDownloadModal [video]="video"></my-video-download>
198 <my-video-report #videoReportModal [video]="video"></my-video-report>
199 </ng-template>