OXYGENHUB
# 81a6254b92af oxygenhub / templates / deliveries.html
1.4 KiB · HTML · last changed Milestone 0.5: API, webhooks, checks 1 month ago source blame history raw
1
{% extends "base.html" %}
2
{% import "repo_tabs.html" as m %}
3
{% block title %}Deliveries · {{ repo.owner }}/{{ repo.name }}{% endblock %}
4
{% block tabs %}{% call m::tabs(repo, "settings") %}{% endblock %}
5
{% block mainclass %} class="wide"{% endblock %}
6
{% block content %}
7
<div class="head"><h1>Deliveries <small>{{ hook.url }} · events {{ hook.events }}</small></h1></div>
8
<p><a href="{{ repo.url }}/settings">← settings</a></p>
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>
16
<td><form class="tiny" method="post" action="{{ repo.url }}/settings/hooks/{{ hook.id }}/redeliver/{{ d.id }}"><input type="hidden" name="_csrf" value="{{ shell.csrf }}"><button>redeliver</button></form></td></tr>
17
{% endfor %}
18
</table></div>
19
{% endif %}
20
{% endblock %}