Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame] | 1 | <header class="header"> |
| 2 | <p class="header-title"> |
| 3 | <a href="#/" target="_blank"> |
| 4 | {{vm.title}} |
| 5 | </a> |
| 6 | </p> |
Matteo Scandolo | 63e43eb | 2016-12-14 14:18:53 -0800 | [diff] [blame] | 7 | <p class="header-date notification"> |
Matteo Scandolo | 52fa5cb | 2016-12-16 10:06:13 -0800 | [diff] [blame] | 8 | <i ng-if="vm.newNotifications.length > 0" class="badge"></i> |
| 9 | <i class="fa fa-bell" ng-click="vm.showNotification = !vm.showNotification"></i> |
| 10 | <div class="notification-panel" ng-show="vm.showNotification"> |
Matteo Scandolo | 63e43eb | 2016-12-14 14:18:53 -0800 | [diff] [blame] | 11 | <ul> |
Matteo Scandolo | 52fa5cb | 2016-12-16 10:06:13 -0800 | [diff] [blame] | 12 | <li ng-repeat="n in vm.notifications track by $index" ng-click="vm.viewNotification(n)" ng-class="{viewed: n.viewed}"> |
Matteo Scandolo | 63e43eb | 2016-12-14 14:18:53 -0800 | [diff] [blame] | 13 | <b>{{n.model}}</b><br> |
| 14 | <i>{{n.msg.object.name}} status is {{n.msg.object.backend_status}}</i> |
| 15 | </li> |
| 16 | </ul> |
| 17 | </div> |
| 18 | </p> |
Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame] | 19 | </header> |