2019-01-09 15:18:10 +01:00
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
|
|
|
|
|
|
<div class="text-left">
|
2019-01-09 17:36:33 +01:00
|
|
|
<h1>Notifications <button class="btn btn-primary btn-outline pull-right" ng-click="notifications.clearAll()" ng-disabled="clearAllBusy"><i class="fa fa-circle-notch fa-spin" ng-show="clearAllBusy"></i><i class="fa fa-check" ng-hide="clearAllBusy"></i> Clear All</button></h1>
|
2019-01-09 15:18:10 +01:00
|
|
|
</div>
|
|
|
|
|
|
2019-01-09 17:16:41 +01:00
|
|
|
<div class="col-lg-12 text-center" ng-show="notifications.busy">
|
|
|
|
|
<h2><i class="fa fa-circle-notch fa-spin"></i></h2>
|
|
|
|
|
</div>
|
|
|
|
|
|
2019-01-09 17:26:44 +01:00
|
|
|
<div class="card" ng-hide="notifications.busy || notifications.notifications.length">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-xs-12">
|
|
|
|
|
<h3 class="text-center" style="margin: 20px;">All Caught Up!</h3>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-01-09 17:16:41 +01:00
|
|
|
|
|
|
|
|
<div class="card notification-item" ng-repeat="notification in notifications.notifications">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-xs-12" ng-click="notification.isCollapsed = !notification.isCollapsed" ng-class="{ 'notification-details': notification.detailsShown }">
|
|
|
|
|
{{ notification.title }} <small class="text-muted" uib-tooltip="{{ notification.creationTime | prettyLongDate }}">{{ notification.creationTime | prettyDate }}</small>
|
|
|
|
|
<button class="btn btn-xs btn-success pull-right" ng-hide="notification.acknowledged" ng-click="notifications.ack(notification)" uib-tooltip="Clear"><i class="fa fa-check"></i></button>
|
|
|
|
|
|
|
|
|
|
<div uib-collapse="notification.isCollapsed">
|
|
|
|
|
<br/>
|
|
|
|
|
{{ notification.message }}<br/>
|
2019-01-17 13:21:54 +01:00
|
|
|
<!-- <br/> -->
|
|
|
|
|
<!-- <button class="btn btn-primary" ng-show="notification.action" ng-click="notifications.action(notification)"><i class="fa fa-arrow-right"></i> Goto View</button> -->
|
2019-01-09 15:18:10 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-01-09 17:16:41 +01:00
|
|
|
|
|
|
|
|
<div class="col-md-12 text-center" ng-hide="notifications.all">
|
|
|
|
|
<button class="btn btn-outline btn-default" ng-click="notifications.showOld()">Show older Notifications</button>
|
|
|
|
|
</div>
|
2019-01-09 15:18:10 +01:00
|
|
|
</div>
|