This is Pluto, the webhook server.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

40 lines
1.3 KiB

{% extends "base.html" %}
{% block title %}Pluto - Logs{% endblock %}
{% block content %}
<p>
Here are the last {{ n }} requests observed to <span class="monospace">/hook</span>:
</p>
<table id="logs">
<tr>
<th>Time</th>
<th>Path</th>
<th>Headers</th>
<th>Data</th>
<th>Hooks</th>
</tr>
{% for log in logs %}
<tr>
<td class="time">{{ log.time | ctime }}</td>
<td class="path">{{ log.path }}</td>
<td class="headers">{{ log.headers | hloads | pprint(True) }}</td>
<td class="data">{{ log.data | jloads | pprint(True) }}</td>
<td class="hooks">
{% if log.hooks %}
{% for hookid in log.hooks.split(',') %}
{% set num = hookid|int %}
{% set hook = g.Hook.get_one(rowid = num) %}
{{ macros.hook(hook) }}
{% endfor %}
{% else %}
<span class="nodata">No hooks.</span>
{% endif %}
</td>
</tr>
{% else %}
<tr>
<td colspan="4" class="nodata">No data.</td>
</tr>
{% endfor %}
</table>
{% endblock %}