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 | c719e79 | 2016-12-14 15:48:31 -0800 | [diff] [blame] | 8 | <i ng-show="vm.newNotifications.length > 0" class="badge"></i> |
Matteo Scandolo | 63e43eb | 2016-12-14 14:18:53 -0800 | [diff] [blame] | 9 | <i class="fa fa-bell" ng-click="showNotification = !showNotification"></i> |
| 10 | <div class="notification-panel" ng-show="showNotification"> |
| 11 | <ul> |
Matteo Scandolo | c719e79 | 2016-12-14 15:48:31 -0800 | [diff] [blame] | 12 | <li ng-repeat="n in vm.notifications" 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> |