diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-08 14:13:40 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-08 14:13:40 -0400 |
| commit | ac992d9d8be5dd71e60c5650efe84c3f40a36e6e (patch) | |
| tree | b2acdabc5c773a61dffb8425e3c789e79b06d1bd /www/templates | |
| parent | a5e032c1d38152644ffabead6536dd14b0433119 (diff) | |
badge notification count for events
Diffstat (limited to 'www/templates')
| -rw-r--r-- | www/templates/devoptions.html | 2 | ||||
| -rw-r--r-- | www/templates/events-graphs.html | 2 | ||||
| -rw-r--r-- | www/templates/events.html | 2 | ||||
| -rw-r--r-- | www/templates/help.html | 2 | ||||
| -rw-r--r-- | www/templates/log.html | 4 | ||||
| -rw-r--r-- | www/templates/login.html | 1 | ||||
| -rw-r--r-- | www/templates/monitors.html | 3 | ||||
| -rw-r--r-- | www/templates/montage.html | 2 | ||||
| -rw-r--r-- | www/templates/state.html | 1 | ||||
| -rw-r--r-- | www/templates/timeline.html | 2 |
10 files changed, 12 insertions, 9 deletions
diff --git a/www/templates/devoptions.html b/www/templates/devoptions.html index 3ab3ca1b..ba25ab24 100644 --- a/www/templates/devoptions.html +++ b/www/templates/devoptions.html @@ -2,7 +2,7 @@ <ion-nav-buttons side="left"> <button class="button button-icon button-clear ion-navicon" ng-click="openMenu()"></button> - <button class="animated infinite tada button button-icon button-clear ion-ios-bell" ng-click="$root.isAlarm=!$root.isAlarm;" ng-if="$root.isAlarm"></button> + <button data-badge="{{$root.alarmCount}}" class="animated infinite tada button button-icon button-clear ion-ios-bell notification-badge" ng-click="handleAlarms();" ng-if="$root.isAlarm"></button> </ion-nav-buttons> diff --git a/www/templates/events-graphs.html b/www/templates/events-graphs.html index 8451db3d..787ce857 100644 --- a/www/templates/events-graphs.html +++ b/www/templates/events-graphs.html @@ -3,7 +3,7 @@ <ion-nav-buttons side="left"> <button class="button button-icon button-clear ion-navicon" ng-click="openMenu()"></button> - <button class="animated infinite tada button button-icon button-clear ion-ios-bell" ng-click="$root.isAlarm=!$root.isAlarm;" ng-if="$root.isAlarm"></button> + <button data-badge="{{$root.alarmCount}}" class="animated infinite tada button button-icon button-clear ion-ios-bell notification-badge" ng-click="handleAlarms();" ng-if="$root.isAlarm"></button> </ion-nav-buttons> diff --git a/www/templates/events.html b/www/templates/events.html index b39d10a8..03e3875e 100644 --- a/www/templates/events.html +++ b/www/templates/events.html @@ -8,7 +8,7 @@ <button class="button button-icon icon ion-ios-minus-outline" ng-click="eventList.showDelete = !eventList.showDelete;"></button> - <button class="animated infinite tada button button-icon button-clear ion-ios-bell" ng-click="$root.isAlarm=!$root.isAlarm;" ng-if="$root.isAlarm"></button> + <button data-badge="{{$root.alarmCount}}" class="animated infinite tada button button-icon button-clear ion-ios-bell notification-badge" ng-click="handleAlarms();" ng-if="$root.isAlarm"></button> </ion-nav-buttons> diff --git a/www/templates/help.html b/www/templates/help.html index cce7057b..647a24cc 100644 --- a/www/templates/help.html +++ b/www/templates/help.html @@ -3,7 +3,7 @@ <ion-nav-buttons side="left"> <button class="button button-icon button-clear ion-navicon" ng-click="openMenu()"></button> - <button class="animated infinite tada button button-icon button-clear ion-ios-bell" ng-click="$root.isAlarm=!$root.isAlarm;" ng-if="$root.isAlarm"></button> + <button data-badge="{{$root.alarmCount}}" class="animated infinite tada button button-icon button-clear ion-ios-bell notification-badge" ng-click="handleAlarms();" ng-if="$root.isAlarm"></button> </ion-nav-buttons> diff --git a/www/templates/log.html b/www/templates/log.html index ff4ce57a..4c923fce 100644 --- a/www/templates/log.html +++ b/www/templates/log.html @@ -3,9 +3,9 @@ <ion-nav-buttons side="left"> <button class="button button-icon button-clear ion-navicon" ng-click="openMenu()"></button> - <button class="animated infinite tada button button-icon button-clear ion-ios-bell" ng-click="$root.isAlarm=!$root.isAlarm;" ng-if="$root.isAlarm"></button> + <button data-badge="{{$root.alarmCount}}" class="animated infinite tada button button-icon button-clear ion-ios-bell notification-badge" ng-click="handleAlarms();" ng-if="$root.isAlarm"></button> -<button class="animated infinite tada button button-icon button-clear ion-ios-bell" ng-click="$root.isAlarm=!$root.isAlarm;" ng-if="$root.isAlarm"></button> + </ion-nav-buttons> diff --git a/www/templates/login.html b/www/templates/login.html index 76b99f42..a0195f01 100644 --- a/www/templates/login.html +++ b/www/templates/login.html @@ -2,6 +2,7 @@ <ion-nav-buttons side="left"> <button class="button button-icon button-clear ion-navicon" ng-click="openMenu()"></button> + <button data-badge="{{$root.alarmCount}}" class="animated infinite tada button button-icon button-clear ion-ios-bell notification-badge" ng-click="handleAlarms();" ng-if="$root.isAlarm"></button> </ion-nav-buttons> <ion-content padding="true" > diff --git a/www/templates/monitors.html b/www/templates/monitors.html index aec02784..43e9582d 100644 --- a/www/templates/monitors.html +++ b/www/templates/monitors.html @@ -3,7 +3,8 @@ <button class="button button-icon button-clear ion-navicon" ng-click="openMenu()"> </button> - <button class="animated infinite tada button button-icon button-clear ion-ios-bell" ng-click="$root.isAlarm=!$root.isAlarm;" ng-if="$root.isAlarm"></button> + <button data-badge="{{$root.alarmCount}}" class="animated infinite tada button button-icon button-clear ion-ios-bell notification-badge" ng-click="handleAlarms();" ng-if="$root.isAlarm"></button> + </ion-nav-buttons> <ion-content> diff --git a/www/templates/montage.html b/www/templates/montage.html index aed7fd60..f3a5c9ae 100644 --- a/www/templates/montage.html +++ b/www/templates/montage.html @@ -1,7 +1,7 @@ <ion-view title="Montage" cache-view="false" hide-nav-bar="{{minimal}}"> <ion-nav-buttons side="left"> <button class="button button-icon button-clear ion-navicon" ng-click="openMenu()"></button> - <button class="animated infinite tada button button-icon button-clear ion-ios-bell" ng-click="$root.isAlarm=!$root.isAlarm;" ng-if="$root.isAlarm"></button> + <button data-badge="{{$root.alarmCount}}" class="animated infinite tada button button-icon button-clear ion-ios-bell notification-badge" ng-click="handleAlarms();" ng-if="$root.isAlarm"></button> </ion-nav-buttons> diff --git a/www/templates/state.html b/www/templates/state.html index 653d9a71..440d931e 100644 --- a/www/templates/state.html +++ b/www/templates/state.html @@ -2,6 +2,7 @@ <ion-nav-buttons side="left"> <button class="button button-icon button-clear ion-navicon" ng-click="openMenu()"></button> + <button data-badge="{{$root.alarmCount}}" class="animated infinite tada button button-icon button-clear ion-ios-bell notification-badge" ng-click="handleAlarms();" ng-if="$root.isAlarm"></button> </ion-nav-buttons> <ion-content> <ion-refresher pulling-text="Pull to reload data..." diff --git a/www/templates/timeline.html b/www/templates/timeline.html index d93c48cb..b0ec1409 100644 --- a/www/templates/timeline.html +++ b/www/templates/timeline.html @@ -8,7 +8,7 @@ <button class="button button-icon button-clear ion-arrow-right-c" ng-click="move(-0.2)"></button>--> -<button class="animated infinite tada button button-icon button-clear ion-ios-bell" ng-click="$root.isAlarm=!$root.isAlarm;" ng-if="$root.isAlarm"></button> +<button data-badge="{{$root.alarmCount}}" class="animated infinite tada button button-icon button-clear ion-ios-bell notification-badge" ng-click="handleAlarms();" ng-if="$root.isAlarm"></button> </ion-nav-buttons> |
