diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-05 10:52:27 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-05 10:53:09 +0200 |
commit | 3a0fb65c61f80b510bce979a45d59d17948745e8 (patch) | |
tree | c1be0b2158a008fea826835c8d2fd4e8d648bae9 /client/src/app/videos/+video-watch/video-watch.component.html | |
parent | 693263e936763a851e3c8c020e3739def8bd4eca (diff) | |
download | PeerTube-3a0fb65c61f80b510bce979a45d59d17948745e8.tar.gz PeerTube-3a0fb65c61f80b510bce979a45d59d17948745e8.tar.zst PeerTube-3a0fb65c61f80b510bce979a45d59d17948745e8.zip |
Add video miniature dropdown
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.html | 37 |
1 files changed, 3 insertions, 34 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 ad1d04b70..7755a729a 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.html +++ b/client/src/app/videos/+video-watch/video-watch.component.html | |||
@@ -120,37 +120,9 @@ | |||
120 | </div> | 120 | </div> |
121 | </div> | 121 | </div> |
122 | 122 | ||
123 | <div class="action-dropdown" ngbDropdown placement="top" role="button"> | 123 | <my-video-actions-dropdown |
124 | <div class="action-button" ngbDropdownToggle role="button"> | 124 | placement="top" buttonDirection="horizontal" [buttonStyled]="true" [video]="video" (videoRemoved)="onVideoRemoved()" |
125 | <my-global-icon class="more-icon" iconName="more-horizontal"></my-global-icon> | 125 | ></my-video-actions-dropdown> |
126 | </div> | ||
127 | |||
128 | <div ngbDropdownMenu> | ||
129 | <a *ngIf="isVideoDownloadable()" class="dropdown-item" i18n-title title="Download the video" href="#" (click)="showDownloadModal($event)"> | ||
130 | <my-global-icon iconName="download"></my-global-icon> <ng-container i18n>Download</ng-container> | ||
131 | </a> | ||
132 | |||
133 | <a *ngIf="isUserLoggedIn()" class="dropdown-item" i18n-title title="Report this video" href="#" (click)="showReportModal($event)"> | ||
134 | <my-global-icon iconName="alert"></my-global-icon> <ng-container i18n>Report</ng-container> | ||
135 | </a> | ||
136 | |||
137 | <a *ngIf="isVideoUpdatable()" class="dropdown-item" i18n-title title="Update this video" href="#" [routerLink]="[ '/videos/update', video.uuid ]"> | ||
138 | <my-global-icon iconName="edit"></my-global-icon> <ng-container i18n>Update</ng-container> | ||
139 | </a> | ||
140 | |||
141 | <a *ngIf="isVideoBlacklistable()" class="dropdown-item" i18n-title title="Blacklist this video" href="#" (click)="showBlacklistModal($event)"> | ||
142 | <my-global-icon iconName="no"></my-global-icon> <ng-container i18n>Blacklist</ng-container> | ||
143 | </a> | ||
144 | |||
145 | <a *ngIf="isVideoUnblacklistable()" class="dropdown-item" i18n-title title="Unblacklist this video" href="#" (click)="unblacklistVideo($event)"> | ||
146 | <my-global-icon iconName="undo"></my-global-icon> <ng-container i18n>Unblacklist</ng-container> | ||
147 | </a> | ||
148 | |||
149 | <a *ngIf="isVideoRemovable()" class="dropdown-item" i18n-title title="Delete this video" href="#" (click)="removeVideo($event)"> | ||
150 | <my-global-icon iconName="delete"></my-global-icon> <ng-container i18n>Delete</ng-container> | ||
151 | </a> | ||
152 | </div> | ||
153 | </div> | ||
154 | </div> | 126 | </div> |
155 | 127 | ||
156 | <div | 128 | <div |
@@ -270,7 +242,4 @@ | |||
270 | <ng-template [ngIf]="video !== null"> | 242 | <ng-template [ngIf]="video !== null"> |
271 | <my-video-support #videoSupportModal [video]="video"></my-video-support> | 243 | <my-video-support #videoSupportModal [video]="video"></my-video-support> |
272 | <my-video-share #videoShareModal [video]="video"></my-video-share> | 244 | <my-video-share #videoShareModal [video]="video"></my-video-share> |
273 | <my-video-download #videoDownloadModal [video]="video"></my-video-download> | ||
274 | <my-video-report #videoReportModal [video]="video"></my-video-report> | ||
275 | <my-video-blacklist #videoBlacklistModal [video]="video"></my-video-blacklist> | ||
276 | </ng-template> | 245 | </ng-template> |