activity: basic webhook alerts for automation failures

This commit is contained in:
Iain Learmonth 2022-05-14 10:18:00 +01:00
parent eb372bec59
commit ac4f9b4942
12 changed files with 300 additions and 3 deletions

View file

@ -529,4 +529,33 @@
</tbody>
</table>
</div>
{% endmacro %}
{% macro webhook_table(webhooks) %}
<div class="table-responsive">
<table class="table table-striped table-sm">
<thead>
<tr>
<th scope="col">Description</th>
<th scope="col">Format</th>
<th scope="col">URL</th>
</tr>
</thead>
<tbody>
{% for webhook in webhooks %}
{% if not webhook.destroyed %}
<tr class="align-middle">
<td>{{ webhook.description }}</td>
<td>{{ webhook.format | webhook_format_name }}</td>
<td><code>{{ webhook.url }}</code></td>
<td>
<a href="{{ url_for("portal.webhook.webhook_destroy", webhook_id=webhook.id) }}"
class="btn btn-danger btn-sm">Destroy</a>
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
{% endmacro %}