aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/video-watch.component.html
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-31 11:38:05 +0100
committerChocobozzz <me@florianbigard.com>2018-01-31 11:38:05 +0100
commit1f788f2044928325e48c5d88ecbc72501873558e (patch)
tree5adec286aa86477fd638efebe42ecf42d55043e5 /client/src/app/videos/+video-watch/video-watch.component.html
parent6693df9dd60e6966186bcb7765218596de7b65c0 (diff)
downloadPeerTube-1f788f2044928325e48c5d88ecbc72501873558e.tar.gz
PeerTube-1f788f2044928325e48c5d88ecbc72501873558e.tar.zst
PeerTube-1f788f2044928325e48c5d88ecbc72501873558e.zip
Improve responsive on video watch
Diffstat (limited to 'client/src/app/videos/+video-watch/video-watch.component.html')
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.html144
1 files changed, 73 insertions, 71 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html
index 5921b4b72..74ead1b76 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.html
+++ b/client/src/app/videos/+video-watch/video-watch.component.html
@@ -9,89 +9,91 @@
9 <!-- Video information --> 9 <!-- Video information -->
10 <div *ngIf="video" class="margin-content video-bottom"> 10 <div *ngIf="video" class="margin-content video-bottom">
11 <div class="video-info"> 11 <div class="video-info">
12 <div class="video-info-name-actions"> 12 <div class="video-info-first-row">
13 <div class="video-info-name">{{ video.name }}</div> 13 <div>
14 <div class="video-info-name">{{ video.name }}</div>
14 15
15 <div class="video-info-actions"> 16 <div class="video-info-date-views">
16 <div 17 {{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
17 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
18 class="action-button action-button-like"
19 >
20 <span class="icon icon-like" title="Like this video" ></span>
21 </div> 18 </div>
22 19
23 <div 20 <div class="video-info-channel">
24 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()" 21 {{ video.channel.displayName }}
25 class="action-button action-button-dislike" 22 <!-- Here will be the subscribe button -->
26 >
27 <span class="icon icon-dislike" title="Dislike this video"></span>
28 </div> 23 </div>
29 24
30 <div (click)="showShareModal()" class="action-button"> 25 <div class="video-info-by">
31 <span class="icon icon-share"></span> 26 By {{ video.by }}
32 Share 27 <img [src]="getAvatarPath()" alt="Account avatar" />
33 </div> 28 </div>
29 </div>
34 30
35 <div class="action-more" dropdown dropup="true" placement="right"> 31 <div class="video-actions-rates">
36 <div class="action-button" dropdownToggle> 32 <div class="video-actions">
37 <span class="icon icon-more"></span> 33 <div
34 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
35 class="action-button action-button-like"
36 >
37 <span class="icon icon-like" title="Like this video" ></span>
38 </div> 38 </div>
39 39
40 <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button"> 40 <div
41 <li role="menuitem"> 41 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
42 <a class="dropdown-item" title="Download the video" href="#" (click)="showDownloadModal($event)"> 42 class="action-button action-button-dislike"
43 <span class="icon icon-download"></span> Download 43 >
44 </a> 44 <span class="icon icon-dislike" title="Dislike this video"></span>
45 </li> 45 </div>
46
47 <li *ngIf="isUserLoggedIn()" role="menuitem">
48 <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)">
49 <span class="icon icon-alert"></span> Report
50 </a>
51 </li>
52
53 <li *ngIf="isVideoBlacklistable()" role="menuitem">
54 <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)">
55 <span class="icon icon-blacklist"></span> Blacklist
56 </a>
57 </li>
58
59 <li *ngIf="isVideoUpdatable()" role="menuitem">
60 <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.uuid ]">
61 <span class="icon icon-edit"></span> Update
62 </a>
63 </li>
64
65 <li *ngIf="isVideoRemovable()" role="menuitem">
66 <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)">
67 <span class="icon icon-blacklist"></span> Delete
68 </a>
69 </li>
70 </ul>
71 </div>
72 </div>
73 </div>
74
75 <div class="video-info-date-views-bar">
76 <div class="video-info-date-views">
77 {{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
78 </div>
79 46
80 <div 47 <div (click)="showShareModal()" class="action-button">
81 class="video-info-likes-dislikes-bar" 48 <span class="icon icon-share"></span>
82 *ngIf="video.likes !== 0 || video.dislikes !== 0" [tooltip]="likesBarTooltipText"> 49 Share
83 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div> 50 </div>
84 </div>
85 </div>
86 51
87 <div class="video-info-channel"> 52 <div class="action-more" dropdown dropup="true" placement="right">
88 {{ video.channel.displayName }} 53 <div class="action-button" dropdownToggle>
89 <!-- Here will be the subscribe button --> 54 <span class="icon icon-more"></span>
90 </div> 55 </div>
56
57 <ul *dropdownMenu class="dropdown-menu" id="more-menu" role="menu" aria-labelledby="single-button">
58 <li role="menuitem">
59 <a class="dropdown-item" title="Download the video" href="#" (click)="showDownloadModal($event)">
60 <span class="icon icon-download"></span> Download
61 </a>
62 </li>
63
64 <li *ngIf="isUserLoggedIn()" role="menuitem">
65 <a class="dropdown-item" title="Report this video" href="#" (click)="showReportModal($event)">
66 <span class="icon icon-alert"></span> Report
67 </a>
68 </li>
69
70 <li *ngIf="isVideoBlacklistable()" role="menuitem">
71 <a class="dropdown-item" title="Blacklist this video" href="#" (click)="blacklistVideo($event)">
72 <span class="icon icon-blacklist"></span> Blacklist
73 </a>
74 </li>
75
76 <li *ngIf="isVideoUpdatable()" role="menuitem">
77 <a class="dropdown-item" title="Update this video" href="#" [routerLink]="[ '/videos/edit', video.uuid ]">
78 <span class="icon icon-edit"></span> Update
79 </a>
80 </li>
81
82 <li *ngIf="isVideoRemovable()" role="menuitem">
83 <a class="dropdown-item" title="Delete this video" href="#" (click)="removeVideo($event)">
84 <span class="icon icon-blacklist"></span> Delete
85 </a>
86 </li>
87 </ul>
88 </div>
89 </div>
91 90
92 <div class="video-info-by"> 91 <div
93 By {{ video.by }} 92 class="video-info-likes-dislikes-bar"
94 <img [src]="getAvatarPath()" alt="Account avatar" /> 93 *ngIf="video.likes !== 0 || video.dislikes !== 0" [tooltip]="likesBarTooltipText">
94 <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div>
95 </div>
96 </div>
95 </div> 97 </div>
96 98
97 <div class="video-info-description"> 99 <div class="video-info-description">