user-alert-channels-list-view.html
63 lines
| 3.5 KiB
| text/html
|
HtmlLexer
/ frontend / src / components / views / user-alert-channels-list-view / user-alert-channels-list-view.html
r81 | <ng-include src="'templates/loader.html'" ng-if="$ctrl.loading.channels || $ctrl.loading.applications"></ng-include> | |||
r0 | ||||
r81 | <div ng-if="!$ctrl.loading.channels && !$ctrl.loading.applications && !$ctrl.loading.actions"> | |||
r0 | ||||
<div class="panel panel-default"> | ||||
<div class="panel-heading" ng-include="'templates/user/breadcrumbs.html'"></div> | ||||
<div class="panel-body"> | ||||
<h1>Report alert rules</h1> | ||||
<p> | ||||
r81 | <a class="btn btn-info" ng-click="$ctrl.addAction()"><span class="fa fa-plus-circle"></span> Add top-level rule</a> | |||
r0 | </p> | |||
r81 | <report-alert-action action="action" rule-definitions="$ctrl.ruleDefinitions" | |||
possible-channels="$ctrl.alertChannels" | ||||
actions="$ctrl.alertActions" applications="$ctrl.applications" | ||||
ng-repeat="action in $ctrl.alertActions | filter: {type:'report'}"></report-alert-action> | ||||
r0 | ||||
</div> | ||||
</div> | ||||
<div class="panel panel-default"> | ||||
<div class="panel-body"> | ||||
<h1>Alert channels</h1> | ||||
<p>Here you can configure your <em>alert channels</em>.</p> | ||||
<p>An alert channel serves as means of delivery of notifications about important events that happen in your applications.</p> | ||||
<div class="alert alert-success">You can add more integrations that support different alert channels via application management panel.</div> | ||||
<table class="table table-striped"> | ||||
r81 | <tr ng-repeat="channel in $ctrl.alertChannels" class="animate-repeat"> | |||
r0 | <td><strong>{{ channel.channel_visible_value }}</strong></td> | |||
<td class="text-right"> | ||||
<span class="btn btn-default" data-uib-tooltip="Channel is {{ channel.channel_validated? '' :'NOT' }} validated" tooltip-append-to-body="true" | ||||
ng-class="{dim:!channel.channel_validated}"> | ||||
<span class="fa" ng-class="{'fa-check-circle':channel.channel_validated, 'fa-times-circle':!channel.channel_validated}"></span> | ||||
</span> | ||||
<a class="btn btn-default" data-uib-tooltip="Press to turn {{ channel.send_alerts ? 'OFF' : 'ON' }} alerting on this chanel" | ||||
r81 | ng-click="$ctrl.updateChannel(channel,'send_alerts')" ng-class="{dim:!channel.send_alerts}" tooltip-append-to-body="true"> | |||
r0 | <span class="fa fa-rss"></span> Alerts | |||
</a> | ||||
<a class="btn btn-default" data-uib-tooltip="Press to turn {{ channel.daily_digest ? 'OFF' : 'ON' }} daily digests on this channel" | ||||
r81 | ng-click="$ctrl.updateChannel(channel,'daily_digest')" ng-class="{dim:!channel.daily_digest}" tooltip-append-to-body="true"> | |||
r0 | <span class="fa fa-envelope"></span> Daily digests | |||
</a> | ||||
<span class="dropdown" data-uib-dropdown on-toggle="toggled(open)"> | ||||
<a class="btn btn-default" data-uib-dropdown-toggle><span class="fa fa-trash-o"></span> Remove</a> | ||||
<ul class="dropdown-menu"> | ||||
<li><a>No</a></li> | ||||
r81 | <li><a ng-click="$ctrl.removeChannel(channel)">Yes</a></li> | |||
r0 | </ul> | |||
</span> | ||||
</td> | ||||
</tr> | ||||
</table> | ||||
</div> | ||||
</div> | ||||
</div> | ||||