blob: 8359ab3a8f69ce75e3e574409140fbbc7681ce88 [file] [log] [blame]
Matteo Scandolof6acdbe2016-12-13 10:29:37 -08001<header class="header">
2 <p class="header-title">
3 <a href="#/" target="_blank">
4 {{vm.title}}
5 </a>
6 </p>
Matteo Scandolo63e43eb2016-12-14 14:18:53 -08007 <p class="header-date notification">
Matteo Scandolo52fa5cb2016-12-16 10:06:13 -08008 <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 Scandolo63e43eb2016-12-14 14:18:53 -080011 <ul>
Matteo Scandolo52fa5cb2016-12-16 10:06:13 -080012 <li ng-repeat="n in vm.notifications track by $index" ng-click="vm.viewNotification(n)" ng-class="{viewed: n.viewed}">
Matteo Scandolo63e43eb2016-12-14 14:18:53 -080013 <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 Scandolof6acdbe2016-12-13 10:29:37 -080019</header>