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.

46 lines
1.5 KiB

5 years ago
5 years ago
5 years ago
5 years ago
  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>Values</th>
  14. <th>Hook</th>
  15. <th>Actor</th>
  16. <th>Success</th>
  17. <th>Message</th>
  18. </tr>
  19. {% for log in logs %}
  20. <tr>
  21. <td class="time">{{ log.time | ctime }}</td>
  22. <td class="path">{{ log.path }}</td>
  23. <td class="headers">{{ log.headers | hloads | pprint(True) }}</td>
  24. <td class="data">{{ log.data | jloads | pprint(True) }}</td>
  25. <td class="values">{{ log.value | jloads | pprint(True) }}</td>
  26. <td class="hook">{{ macros.hook_id(log.hook) }}</td>
  27. <td class="actor">
  28. {% if log.cond %}
  29. {{ macros.cond_id(log.cond) }}
  30. {% elif log.act %}
  31. {{ macros.act_id(log.act) }}
  32. {% else %}
  33. {{ macros.hook_id(log.hook) }}
  34. {% endif %}
  35. </td>
  36. <td class="success">{{ macros.yesno(log.success) }}</td>
  37. <td class="message">{{ log.message }}</td>
  38. </tr>
  39. {% else %}
  40. <tr>
  41. <td colspan="9" class="nodata">No data.</td>
  42. </tr>
  43. {% endfor %}
  44. </table>
  45. {% endblock %}