-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
56 additions
and
73 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
promgen/templates/promgen/service_action_button_group.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{% load i18n %} | ||
{% load promgen %} | ||
|
||
|
||
<div style="display: inline-block;"> | ||
<div class="btn-group btn-group-sm" role="group" aria-label="..."> | ||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
{% translate "Actions" %} <span class="caret"></span> | ||
</button> | ||
<ul class="dropdown-menu"> | ||
<li role="presentation"><a href="{% urlqs 'audit-list' service=service.id %}">{% translate "Edit History" %}</a></li> | ||
<li role="presentation"><a href="{% urlqs 'alert-list' service=service.name %}">{% translate "Alert History" %}</a></li> | ||
|
||
<hr> | ||
|
||
<li role="presentation"><a href="{% url 'api:service-rules' name=service.name %}">{% translate "Export Rules" %}</a></li> | ||
<li role="presentation"><a href="{% url 'api:service-targets' name=service.name %}">{% translate "Export Service" %}</a></li> | ||
|
||
<hr> | ||
|
||
<li role="presentation"> | ||
<a href=""> | ||
<form method="post" action="{% url 'service-delete' service.id %}" onsubmit="return confirm('{% translate "Delete this service?" %}')" style="display: inline"> | ||
{% csrf_token %} | ||
<button style="background:none;border: none;padding: 0;">{% translate "Delete Service" %}</button> | ||
</form> | ||
</a> | ||
</li> | ||
|
||
<hr> | ||
|
||
<li> | ||
<a href=""> | ||
<form action="{% url 'service-notifier' service.id %}" style="display:inline" method="post" v-pre>{% csrf_token %} | ||
<input type="hidden" name="sender" value="promgen.notification.user"> | ||
<input type="hidden" name="value" value="{{request.user.username}}" /> | ||
<button style="background:none;border: none;padding: 0;">{% translate "Subscribe to Notifications" %}</button> | ||
</form> | ||
</a> | ||
</li> | ||
|
||
</ul> | ||
</div> | ||
<a @click="setSilenceDataset" data-service="{{service.name}}" class="btn btn-warning btn-sm ml-2 mr-2">{% translate "Silence" %}</a> | ||
|
||
<a href="{% url 'service-update' service.id %}" class="btn btn-warning btn-sm">{% translate "Edit Service" %}</a> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters