| b64e2537 Andy McCall ↶ |
1 |
{% extends "base.html" %} |
| 2 |
{% import "repo_tabs.html" as m %} |
| 8fb35df7 Andy McCall ↶ |
3 |
{% block title %}Deliveries{% endblock %} |
| 4 |
{% block tabs %}{% if let Some(r) = repo %}{% call m::tabs(r, "settings") %}{% endif %}{% endblock %} |
| b64e2537 Andy McCall ↶ |
5 |
{% block mainclass %} class="wide"{% endblock %} |
| 6 |
{% block content %} |
| 9756c67d Andy McCall ↶ |
7 |
<div class="head"><h1>Deliveries <small><code class="hook-url">{{ crate::db::hooks::masked_url(hook.url) }}</code> · {{ hook.format }} · events {{ hook.events }}</small></h1></div> |
| 8fb35df7 Andy McCall ↶ |
8 |
<p><a href="{{ settings_url }}#webhooks">← settings</a></p> |
| b64e2537 Andy McCall ↶ |
9 |
{% if rows.is_empty() %}<p class="empty">Nothing delivered yet.</p>{% else %} |
| 10 |
<div class="table"><table> |
| 11 |
<tr><th>When</th><th>Event</th><th>Delivery</th><th>Attempts</th><th>Status</th><th>Response</th><th></th></tr> |
| 12 |
{% for d in rows %} |
| 13 |
<tr><td><time title="{{ d.created_ms|when_i }}">{{ d.created_ms|ago_i }}</time></td><td>{{ d.event }}</td><td><code>{{ d.delivery }}</code></td><td>{{ d.attempts }}</td> |
| 14 |
<td>{% if let Some(s) = d.status %}{% if d.delivered_ms.is_some() %}<span class="sig sig-valid">✔</span>{% else %}<span class="sig sig-invalid">✘</span>{% endif %} {{ s }}{% else if d.attempts > 0 %}<span class="sig sig-invalid">✘</span> no response{% else %}<span class="mute">queued</span>{% endif %}</td> |
| 15 |
<td class="small mute">{{ d.response|truncate(80) }}</td> |
| 8fb35df7 Andy McCall ↶ |
16 |
<td><form class="tiny" method="post" action="{{ settings_url }}/hooks/{{ hook.id }}/redeliver/{{ d.id }}"><input type="hidden" name="_csrf" value="{{ shell.csrf }}"><button>redeliver</button></form></td></tr> |
| b64e2537 Andy McCall ↶ |
17 |
{% endfor %} |
| 18 |
</table></div> |
| 19 |
{% endif %} |
| 20 |
{% endblock %} |