Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
58e0bdd7
Commit
58e0bdd7
authored
Jan 02, 2018
by
Patrick O'Carroll
Committed by
Torkel Ödegaard
Jan 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added empty list cta to notification channels, fixes 10393 (#10400)
parent
62df406d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
38 deletions
+53
-38
public/app/features/alerting/partials/notifications_list.html
+53
-38
No files found.
public/app/features/alerting/partials/notifications_list.html
View file @
58e0bdd7
<page-header
model=
"ctrl.navModel"
></page-header>
<page-header
model=
"ctrl.navModel"
></page-header>
<div
class=
"page-container page-body"
>
<div
class=
"page-container page-body"
>
<div
class=
"page-action-bar"
>
<div
class=
"page-action-bar__spacer"
>
<div
ng-if=
"ctrl.notifications.length"
>
<div
class=
"page-action-bar"
>
<div
class=
"page-action-bar__spacer"
>
</div>
<a
href=
"alerting/notification/new"
class=
"btn btn-success"
>
<i
class=
"fa fa-plus"
></i>
New Channel
</a>
</div>
</div>
<a
href=
"alerting/notification/new"
class=
"btn btn-success"
>
<table
class=
"filter-table filter-table--hover"
>
<i
class=
"fa fa-plus"
></i>
<thead>
New Channel
<th
style=
"min-width: 200px"
>
</a>
<strong>
Name
</strong>
</th>
<th
style=
"min-width: 100px"
>
Type
</th>
<th
style=
"width: 1%"
></th>
</thead>
<tbody>
<tr
ng-repeat=
"notification in ctrl.notifications"
>
<td
class=
"link-td"
>
<a
href=
"alerting/notification/{{notification.id}}/edit"
>
{{notification.name}}
</a>
</td>
<td
class=
"link-td"
>
<a
href=
"alerting/notification/{{notification.id}}/edit"
>
{{notification.type}}
</a>
</td>
<td
class=
"text-right"
>
<span
class=
"btn btn-secondary btn-small"
ng-show=
"notification.isDefault == true"
>
default
</span>
<a
ng-click=
"ctrl.deleteNotification(notification.id)"
class=
"btn btn-danger btn-small"
>
<i
class=
"fa fa-remove"
></i>
</a>
</td>
</tr>
</tbody>
</table>
</div>
<div
ng-if=
"ctrl.notifications.length === 0"
>
<empty-list-cta
model=
"{
title: 'There are no notification channels defined yet',
buttonIcon: 'gicon gicon-alert-notification-channel',
buttonLink: 'alerting/notification/new',
buttonTitle: 'Add channel',
proTip: 'You can include images in your alert notifications.',
proTipLink: 'http://docs.grafana.org/alerting/notifications/',
proTipLinkTitle: 'Learn more',
proTipTarget: '_blank'
}"
/>
</div>
</div>
<table
class=
"filter-table filter-table--hover"
>
<thead>
<th
style=
"min-width: 200px"
>
<strong>
Name
</strong>
</th>
<th
style=
"min-width: 100px"
>
Type
</th>
<th
style=
"width: 1%"
></th>
</thead>
<tbody>
<tr
ng-repeat=
"notification in ctrl.notifications"
>
<td
class=
"link-td"
>
<a
href=
"alerting/notification/{{notification.id}}/edit"
>
{{notification.name}}
</a>
</td>
<td
class=
"link-td"
>
<a
href=
"alerting/notification/{{notification.id}}/edit"
>
{{notification.type}}
</a>
</td>
<td
class=
"text-right"
>
<span
class=
"btn btn-secondary btn-small"
ng-show=
"notification.isDefault == true"
>
default
</span>
<a
ng-click=
"ctrl.deleteNotification(notification.id)"
class=
"btn btn-danger btn-small"
>
<i
class=
"fa fa-remove"
></i>
</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment