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.

debuglogs.html 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {% extends "base.html" %}
  2. {% block title %}Pluto - Logs{% endblock %}
  3. {% block content %}
  4. <p>
  5. Here are the most recent {{ n }} entries in the debug log:
  6. </p>
  7. <table id="logs" class="debug">
  8. <tr>
  9. <th>Time</th>
  10. <th>Path</th>
  11. <th>Headers</th>
  12. <th>Data</th>
  13. <th>Hook</th>
  14. <th>Actor</th>
  15. <th>Success</th>
  16. <th>Message</th>
  17. </tr>
  18. {% for log in logs %}
  19. <tr>
  20. <td class="time">{{ log.time | ctime }}</td>
  21. <td class="path">{{ log.path }}</td>
  22. <td class="headers">{{ log.headers | hloads | pprint(True) }}</td>
  23. <td class="data">{{ log.data | jloads | pprint(True) }}</td>
  24. <td class="hook">{{ macros.hook_id(log.hook) }}</td>
  25. <td class="actor">
  26. {% if log.cond %}
  27. {{ macros.cond_id(log.cond) }}
  28. {% elif log.act %}
  29. {{ macros.act_id(log.act) }}
  30. {% else %}
  31. {{ macros.hook_id(log.hook) }}
  32. {% endif %}
  33. </td>
  34. <td class="success">{{ macros.yesno(log.success) }}</td>
  35. <td class="message">{{ log.message }}</td>
  36. </tr>
  37. {% else %}
  38. <tr>
  39. <td colspan="8" class="nodata">No data.</td>
  40. </tr>
  41. {% endfor %}
  42. </table>
  43. {% endblock %}