summaryrefslogtreecommitdiff
path: root/www/templates
diff options
context:
space:
mode:
Diffstat (limited to 'www/templates')
-rw-r--r--www/templates/devoptions.html2
-rw-r--r--www/templates/events-graphs.html2
-rw-r--r--www/templates/events.html2
-rw-r--r--www/templates/help.html2
-rw-r--r--www/templates/log.html4
-rw-r--r--www/templates/login.html1
-rw-r--r--www/templates/monitors.html3
-rw-r--r--www/templates/montage.html2
-rw-r--r--www/templates/state.html1
-rw-r--r--www/templates/timeline.html2
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>