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.

67 lines
1.7 KiB

  1. <div class="modal-body">
  2. <h3>Ping #{{ ping.n }}
  3. {% if ping.kind == "fail" %}
  4. <span class="text-danger">(received via the <code>/fail</code> endpoint)</span>
  5. {% elif ping.kind == "start" %}
  6. <span class="text-success">(received via the <code>/start</code> endpoint)</span>
  7. {% elif ping.kind == "ign" %}
  8. <span class="text-muted">(ignored)</span>
  9. {% endif %}
  10. </h3>
  11. <div class="row">
  12. <div class="col-sm-6">
  13. <p>
  14. <strong>Time Received</strong>
  15. <code>{{ ping.created.isoformat }}</code>
  16. </p>
  17. </div>
  18. {% if ping.remote_addr %}
  19. <div class="col-sm-6">
  20. <p>
  21. <strong>Client IP</strong>
  22. {{ ping.remote_addr }}
  23. </p>
  24. </div>
  25. {% endif %}
  26. {% if ping.scheme %}
  27. <div class="col-sm-6">
  28. <p>
  29. <strong>Protocol</strong>
  30. {{ ping.scheme }}
  31. </p>
  32. </div>
  33. {% endif %}
  34. {% if ping.method %}
  35. <div class="col-sm-6">
  36. <p>
  37. <strong>Method</strong>
  38. {{ ping.method }}
  39. </p>
  40. </div>
  41. {% endif %}
  42. {% if ping.scheme == "email" %}
  43. <div class="col-sm-6">
  44. <p>
  45. <strong>From</strong>
  46. {{ ping.ua }}
  47. </p>
  48. </div>
  49. {% else %}
  50. <div class="col-sm-12">
  51. <p>
  52. <strong>User Agent</strong>
  53. <span class="ua">{{ ping.ua }}</span>
  54. </p>
  55. </div>
  56. {% endif %}
  57. </div>
  58. {% if ping.body %}
  59. <h4>Request Body</h4>
  60. <pre>{{ ping.body }}</pre>
  61. {% endif %}
  62. </div>