diff options
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 | 34 |
1 files changed, 32 insertions, 2 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 0bbb5d3e8..f3a416367 100644 --- a/client/src/app/videos/video-watch/video-watch.component.html +++ b/client/src/app/videos/video-watch/video-watch.component.html | |||
@@ -50,6 +50,10 @@ | |||
50 | </div> | 50 | </div> |
51 | 51 | ||
52 | <div id="video-actions" class="col-md-4 text-right"> | 52 | <div id="video-actions" class="col-md-4 text-right"> |
53 | <button id="share" class="btn btn-default" (click)="showShareModal()"> | ||
54 | <span class="glyphicon glyphicon-share"></span> Share | ||
55 | </button> | ||
56 | |||
53 | <button title="Get magnet URI" id="magnet-uri" class="btn btn-default" (click)="showMagnetUriModal()"> | 57 | <button title="Get magnet URI" id="magnet-uri" class="btn btn-default" (click)="showMagnetUriModal()"> |
54 | <span class="glyphicon glyphicon-magnet"></span> Magnet | 58 | <span class="glyphicon glyphicon-magnet"></span> Magnet |
55 | </button> | 59 | </button> |
@@ -72,9 +76,9 @@ | |||
72 | </div> | 76 | </div> |
73 | </div> | 77 | </div> |
74 | 78 | ||
75 | <div *ngIf="video !== null" bsModal #magnetUriModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="magnetUriModal" aria-hidden="true"> | 79 | <div *ngIf="video !== null" bsModal #magnetUriModal="bs-modal" class="modal" tabindex="-1" role="dialog" aria-labelledby="magnetUriModal" aria-hidden="true"> |
76 | <div class="modal-dialog"> | 80 | <div class="modal-dialog"> |
77 | <div class="modal-content"> | 81 | <div class="modal-content modal-lg"> |
78 | 82 | ||
79 | <div class="modal-header"> | 83 | <div class="modal-header"> |
80 | <button type="button" class="close" aria-label="Close" (click)="hideMagnetUriModal()"> | 84 | <button type="button" class="close" aria-label="Close" (click)="hideMagnetUriModal()"> |
@@ -89,3 +93,29 @@ | |||
89 | </div> | 93 | </div> |
90 | </div> | 94 | </div> |
91 | </div> | 95 | </div> |
96 | |||
97 | <div *ngIf="video !== null" bsModal #shareModal="bs-modal" class="modal" tabindex="-1" role="dialog" aria-labelledby="shareModal" aria-hidden="true"> | ||
98 | <div class="modal-dialog modal-lg"> | ||
99 | <div class="modal-content"> | ||
100 | |||
101 | <div class="modal-header"> | ||
102 | <button type="button" class="close" aria-label="Close" (click)="hideShareModal()"> | ||
103 | <span aria-hidden="true">×</span> | ||
104 | </button> | ||
105 | <h4 class="modal-title">Share</h4> | ||
106 | </div> | ||
107 | |||
108 | <div class="modal-body"> | ||
109 | <div class="form-group"> | ||
110 | <label>URL</label> | ||
111 | <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm" readonly [value]="getVideoUrl()" /> | ||
112 | </div> | ||
113 | |||
114 | <div class="form-group"> | ||
115 | <label>Embed</label> | ||
116 | <input #shareInput (click)="shareInput.select()" type="text" class="form-control input-sm" readonly [value]="getVideoIframeCode()" /> | ||
117 | </div> | ||
118 | </div> | ||
119 | </div> | ||
120 | </div> | ||
121 | </div> | ||