Add a trigger log every time the a callback is triggered
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{% extends "base/layout.html" %}
|
||||
{% block main %}
|
||||
{{ super() }}
|
||||
|
||||
<div>
|
||||
<h1>Triggers for <u>{{callback.name}}</u></h1>
|
||||
|
||||
<button onclick="window.location.href='{{ url_for('callback', uuid=callback.uuid) }}';">Back</button>
|
||||
|
||||
<p>
|
||||
{% if triggers.count() > 0 %}
|
||||
<table>
|
||||
<tr>
|
||||
<th>Trigger time</th>
|
||||
<th>Schedule</th>
|
||||
<th>Success</th>
|
||||
</tr>
|
||||
{% for trigger in triggers %}
|
||||
<tr>
|
||||
<td>{{trigger.trigger_time.strftime('%A %d %B at %H:%M:%S')}}</td>
|
||||
<td>{% if trigger.schedule_id != -1 %}{{trigger.schedule.name}}{% endif %}</td>
|
||||
<td>{{trigger.success}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% else %}
|
||||
This callback has not been triggered yet.
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user