diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-13 13:53:36 -0500 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-13 13:53:36 -0500 |
| commit | 23b05e3ba46a01b0aef63774004d0f1dd4359c03 (patch) | |
| tree | 34567e236ab4fafa02c37a6caf14d3467f6e2ee8 /www/templates | |
| parent | 4e5e7d28a94106dab8ecf8ff08acfdf5589fe4c6 (diff) | |
#82 - alarm indication
Former-commit-id: 8ff19d73113773b4969e89e529ed3829766cde6b
Diffstat (limited to 'www/templates')
| -rw-r--r-- | www/templates/montage.html | 83 |
1 files changed, 34 insertions, 49 deletions
diff --git a/www/templates/montage.html b/www/templates/montage.html index 6a583847..87838e76 100644 --- a/www/templates/montage.html +++ b/www/templates/montage.html @@ -6,22 +6,22 @@ <ion-nav-buttons side="right"> - <span class="rotate-button"> + <span class="rotate-button"> <button class="button button-icon button-clear ion-arrow-swap" ng-click="toggleReorder();"> </button> </span> - <button class="button button-icon button-clear ion-android-contract" - ng-click="switchMinimal()"> - </button> + <button class="button button-icon button-clear ion-android-contract" ng-click="switchMinimal()"> + </button> <!--<button class="button button-icon ion-ios-help-outline" ng-click="popover.show($event)"></button>--> - </ion-nav-buttons> + </ion-nav-buttons> <ion-content has-bouncing="false" style="background-color:#444444"> - <ion-refresher pulling-text="Pull to reload Monitors..." - spinner="bubbles" on-refresh="doRefresh()"> + + <ion-refresher pulling-text="Pull to reload Monitors..." spinner="bubbles" on-refresh="doRefresh()"> </ion-refresher> + <!--{{stateofSlide}} Status--> <span ng-show="!minimal"> <div class="range range-positive"> @@ -35,8 +35,7 @@ <div class="wrapper"> - <span ng-repeat="monitor in MontageMonitors|limitTo: monLimit" - ng-if="monitor.Monitor.Function!='None' && monitor.Monitor.listDisplay!='noshow'"> + <span ng-repeat="monitor in MontageMonitors|limitTo: monLimit" ng-if="monitor.Monitor.Function!='None' && monitor.Monitor.listDisplay!='noshow'"> <span ng-show="!minimal"> <div ng-if="monitor.Monitor.isAlarmed=='true'"> <header class="alarmed-header animated infinite flash"> <i class="ion-monitor"></i> @@ -49,42 +48,33 @@ {{monitor.Monitor.Name}} </header> </div> - </span> <article class="main"> - + <!-- back to ng-src. spinner was not updating when rand changes--> - <!-- FIXME: Scale is 50% hardcoded --> <!-- moving to single so I can rely on rand for reloads --> - + <div ng-if="!isModalActive"> - <div ng-if="$root.authSession!='undefined'"> - <img id="img-$index" image-spinner-src="{{LoginData.streamingurl}}/cgi-bin/nph-zms?mode=single&monitor={{monitor.Monitor.Id}}&scale={{LoginData.montageQuality}}{{$root.authSession}}&rand={{$root.rand}}" width="{{((devWidth)/(7-monitorSize[$index]))}}px;" - ng-click="openModal(monitor.Monitor.Id, monitor.Monitor.Controllable, monitor.Monitor.ControlId)" - - style="display:block;" image-spinner-loader="lines" - - /> - <!-- on-hold="onHold($index)" - on-release="onRelease($index)" --> + <img ng-class="monitor.Monitor.isAlarmed=='true'? 'animated infinite flash':''" id="img-$index" image-spinner-src="{{LoginData.streamingurl}}/cgi-bin/nph-zms?mode=single&monitor={{monitor.Monitor.Id}}&scale={{LoginData.montageQuality}}{{$root.authSession}}&rand={{$root.rand}}" width="{{((devWidth)/(7-monitorSize[$index]))}}px;" ng-click="openModal(monitor.Monitor.Id, monitor.Monitor.Controllable, monitor.Monitor.ControlId)" style="display:block;" image-spinner-loader="lines" /> + </div> + <div ng-if="!$root.authSession=='undefined'"> - <img id="img-$index" ng-src="img/pausevideo.png" style="display:block;" - width="{{((devWidth)/(7-monitorSize[$index]))}}px;"/> + <img id="img-$index" ng-src="img/pausevideo.png" style="display:block;" width="{{((devWidth)/(7-monitorSize[$index]))}}px;" /> </div> + </div> - - <!--url: {{LoginData.streamingurl}}/cgi-bin/nph-zms?mode=single&monitor={{monitor.Monitor.Id}}&maxfps={{LoginData.maxFPS}}&scale=50&{{$root.authSession}}&rand={{$root.rand}}--> - <div ng-if="isModalActive"> - <img id="img-$index" ng-src="img/pausevideo.png" style="display:block;" width="{{((devWidth)/(7-monitorSize[$index]))}}px;"/> - </div> - - - + <div ng-if="isModalActive"> + <img id="img-$index" ng-src="img/pausevideo.png" style="display:block;" width="{{((devWidth)/(7-monitorSize[$index]))}}px;" /> + </div> + + + </article> - </span> - </div> + + </span> <!-- ngrepeat --> + </div> <!--wrapper--> <ion-item ng-show="!MontageMonitors.length"> @@ -93,28 +83,23 @@ </ion-content> <div ng-show="minimal"> - <nav mfb-menu position="br" effect="zoomin" label="collapse" - active-icon="ion-chevron-down" resting-icon="ion-chevron-up" toggling-method="click"> - - <button mfb-button icon="ion-arrow-expand" label="increase size" - ng-click="changeSize(1)"> + <nav mfb-menu position="br" effect="zoomin" label="collapse" active-icon="ion-chevron-down" resting-icon="ion-chevron-up" toggling-method="click"> + + <button mfb-button icon="ion-arrow-expand" label="increase size" ng-click="changeSize(1)"> </button> - <button mfb-button icon="ion-arrow-shrink" label="decrease size" - ng-click="changeSize(-1)"> + <button mfb-button icon="ion-arrow-shrink" label="decrease size" ng-click="changeSize(-1)"> </button> <button mfb-button icon="ion-refresh" label="refresh" ng-click="reloadView();"> - </button> - <button mfb-button icon="ion-close" label="exit full screen" - ng-click="switchMinimal()"> + </button> + <button mfb-button icon="ion-close" label="exit full screen" ng-click="switchMinimal()"> </button> </nav> - - <span class="modal-alarm-badge"> + + <span class="modal-alarm-badge"> <a data-badge="{{$root.alarmCount}}" class="animated infinite tada button icon ion-ios-bell notification-badge button-assertive" ng-click="handleAlarmsWhileMinimized();" ng-if="$root.isAlarm"></a> </span> - + </div> <br/> -</ion-view> - +</ion-view>
\ No newline at end of file |
