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.

65 lines
1.6 KiB

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