summaryrefslogtreecommitdiff
path: root/www/templates
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-09-25 15:44:57 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-09-25 15:44:57 -0400
commit74a4d75566708e78eb0aedae466008fb7c4e187e (patch)
treee028e69b8fa0d024bb3d52d4e0a634ddc7b1e451 /www/templates
parent1be879cdee22de8b373b0650d5950e0f4ee42c69 (diff)
#709 #710 clean up video/image code, switch to "a download" for desktop
Diffstat (limited to 'www/templates')
-rw-r--r--www/templates/events-modal.html14
-rw-r--r--www/templates/events.html5
2 files changed, 17 insertions, 2 deletions
diff --git a/www/templates/events-modal.html b/www/templates/events-modal.html
index 6342ab98..1f168b69 100644
--- a/www/templates/events-modal.html
+++ b/www/templates/events-modal.html
@@ -155,11 +155,21 @@
<a href="" ng-click="toggleGapless()">
<i class="ion-ios-loop-strong"></i>-{{loginData.gapless? ('kOn' | translate): ('kOff' | translate)}}</a>
</li>
- <li ng-if="isToggleListMenu ">
- <a href="" ng-click="saveEventImageToPhoneWithPerms(false)">
+ <li ng-if="isToggleListMenu">
+ <a href="" ng-click="saveEventImageToPhoneWithPerms(false, 'any')">
+ <i class="ion-camera"></i>
+ </a>
+ </li>
+
+
+
+ <li ng-if="isToggleListMenu && defaultVideo !='' && defaultVideo != undefined">
+ <a href="" ng-click="saveEventVideoToPhoneWithPerms()">
<i class="ion-android-download"></i>
</a>
</li>
+
+
<li ng-if="defaultVideo=='' && isToggleListMenu">
<a href="" ng-click="saveEventImageToPhoneWithPerms(true)">
<i class="ion-android-notifications"></i>
diff --git a/www/templates/events.html b/www/templates/events.html
index c517966f..291762a4 100644
--- a/www/templates/events.html
+++ b/www/templates/events.html
@@ -78,12 +78,17 @@
{{humanize(event.Event.Length)}}
</span>
<br/>
+
+ <!-- No longer needed - direct video download supported now
+
<button ng-if="gifshotSupported && loginData.enableGIFMP4 " class="button button-small button-clear icon gif-icon" ng-click="permissionsDownload(event)">
</button>
<a ng-if="(event.Event.DefaultVideo!='' && event.Event.DefaultVideo!==undefined) && $root.platformOS=='desktop' && loginData.enableGIFMP4 "
class="button button-clear button-small icon mp4-icon" href="{{event.Event.videoPath}}" download="{{event.Event.Id}}-video.mp4"
ng-click="mp4warning()"></a>
+ -->
+
<button ng-if="event.Event.DefaultVideo!='' && event.Event.DefaultVideo!=undefined && $root.platformOS!='desktop' && loginData.enableGIFMP4 "
class="button button-small button-clear icon mp4-icon" ng-click="downloadFileToDevice(event.Event.videoPath, event.Event.Id)">