2024-08-23 19:45:27 +02:00
|
|
|
<div class="content content-large">
|
2019-01-09 15:18:10 +01:00
|
|
|
|
|
|
|
|
<div class="text-left">
|
2021-05-29 16:18:03 -07:00
|
|
|
<h1>{{ 'notifications.title' | tr }}
|
|
|
|
|
|
2021-11-08 21:50:44 +01:00
|
|
|
<div class="title-toolbar">
|
2022-05-18 09:26:18 +02:00
|
|
|
<button class="btn btn-default" ng-click="showPrevPage()" ng-disabled="busy || currentPage <= 1"><i class="fa fa-angle-double-left"></i> {{ 'main.pagination.prev' | tr }}</button>
|
|
|
|
|
<button class="btn btn-default" ng-click="showNextPage()" ng-disabled="busy || perPage > notifications.length">{{ 'main.pagination.next' | tr }} <i class="fa fa-angle-double-right"></i></button>
|
2022-05-23 17:36:44 +02:00
|
|
|
<button class="btn btn-primary" ng-click="clearAll()" ng-disabled="!$parent.notificationCount || clearAllBusy"><i class="fa fa-circle-notch fa-spin" ng-show="clearAllBusy"></i><i class="fa fa-check" ng-hide="clearAllBusy"></i> {{ 'notifications.markAllAsRead' | tr }}</button>
|
2021-11-08 21:50:44 +01:00
|
|
|
</div>
|
2021-05-29 16:18:03 -07:00
|
|
|
</h1>
|
2019-01-09 15:18:10 +01:00
|
|
|
</div>
|
|
|
|
|
|
2021-05-29 16:06:41 -07:00
|
|
|
<div class="col-lg-12 text-center" ng-show="busy">
|
2019-01-09 17:16:41 +01:00
|
|
|
<h2><i class="fa fa-circle-notch fa-spin"></i></h2>
|
|
|
|
|
</div>
|
|
|
|
|
|
2024-08-23 19:45:27 +02:00
|
|
|
<div class="card card-large" ng-hide="busy || notifications.length">
|
2019-01-09 17:26:44 +01:00
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-xs-12">
|
2020-11-05 16:51:41 +01:00
|
|
|
<h3 class="text-center" style="margin: 20px;">{{ 'notifications.nonePending' | tr }}</h3>
|
2019-01-09 17:26:44 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-01-09 17:16:41 +01:00
|
|
|
|
2024-08-23 19:45:27 +02:00
|
|
|
<div class="card card-large notification-item" ng-repeat="notification in notifications" ng-class="{'notification-unread': !notification.acknowledged }" ng-click="notification.isCollapsed = !notification.isCollapsed" ng-style="{ borderLeftColor: (notification | notificationTypeToColor) }">
|
2019-01-09 17:16:41 +01:00
|
|
|
<div class="row">
|
2022-02-09 18:20:58 +01:00
|
|
|
<div class="col-xs-12" ng-class="{ 'notification-details': notification.detailsShown }">
|
2021-07-07 19:27:31 +02:00
|
|
|
<span class="notification-title">{{ notification.title }}</span> <small class="text-muted" uib-tooltip="{{ notification.creationTime | prettyLongDate }}">{{ notification.creationTime | prettyDate }}</small>
|
2021-06-30 17:24:41 +02:00
|
|
|
<div uib-collapse="notification.isCollapsed" expanding="ack(notification)">
|
2019-01-09 17:16:41 +01:00
|
|
|
<br/>
|
2019-07-17 16:40:05 +02:00
|
|
|
<p ng-hide="notification.messageJson" ng-click="$event.stopPropagation();" style="cursor: auto; overflow: auto;" ng-bind-html="notification.message | markdown2html"></p>
|
2019-02-08 14:05:15 +01:00
|
|
|
<pre ng-show="notification.messageJson" ng-click="$event.stopPropagation();" style="cursor: auto">{{ notification.messageJson | json }}</pre>
|
2020-11-05 16:51:41 +01:00
|
|
|
<button type="button" class="btn btn-danger pull-right" ng-click="$event.stopPropagation(); $parent.reboot.show()" ng-show="notification.title === 'Reboot Required'" ng-disabled="reboot.busy"><i class="fa fa-circle-notch fa-spin" ng-show="reboot.busy"></i> {{ 'main.action.reboot' | tr }}</button>
|
2019-01-09 15:18:10 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|