This is Pluto, the webhook server.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

40 rader
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 %}