notifications_list.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <navbar model="ctrl.navModel"></navbar>
  2. <div class="page-container" >
  3. <div class="page-header">
  4. <h1>
  5. <i class="{{ctrl.navModel.node.icon}}"></i>
  6. {{ctrl.navModel.node.text}}
  7. </h1>
  8. <a href="alerting/notification/new" class="btn btn-success pull-right">
  9. <i class="fa fa-plus"></i>
  10. New Channel
  11. </a>
  12. </div>
  13. <table class="grafana-options-table">
  14. <thead>
  15. <th style="min-width: 200px"><strong>Name</strong></th>
  16. <th style="min-width: 100px">Type</th>
  17. <th style="width: 1%"></th>
  18. </thead>
  19. <tr ng-repeat="notification in ctrl.notifications">
  20. <td>
  21. <a href="alerting/notification/{{notification.id}}/edit">
  22. {{notification.name}}
  23. </a>
  24. </td>
  25. <td>
  26. {{notification.type}}
  27. </td>
  28. <td class="text-right">
  29. <span class="btn btn-secondary btn-small" ng-show="notification.isDefault == true">
  30. default
  31. </span>
  32. <a href="alerting/notification/{{notification.id}}/edit" class="btn btn-inverse btn-small">
  33. <i class="fa fa-edit"></i>
  34. edit
  35. </a>
  36. <a ng-click="ctrl.deleteNotification(notification.id)" class="btn btn-danger btn-small">
  37. <i class="fa fa-remove"></i>
  38. </a>
  39. </td>
  40. </tr>
  41. </table>
  42. </div>