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.

63 lines
1.5 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. {% endif %}
  6. </h3>
  7. <div class="row">
  8. <div class="col-sm-6">
  9. <p>
  10. <strong>Time Received</strong>
  11. <code>{{ ping.created.isoformat }}</code>
  12. </p>
  13. </div>
  14. {% if ping.remote_addr %}
  15. <div class="col-sm-6">
  16. <p>
  17. <strong>Client IP</strong>
  18. {{ ping.remote_addr }}
  19. </p>
  20. </div>
  21. {% endif %}
  22. {% if ping.scheme %}
  23. <div class="col-sm-6">
  24. <p>
  25. <strong>Protocol</strong>
  26. {{ ping.scheme }}
  27. </p>
  28. </div>
  29. {% endif %}
  30. {% if ping.method %}
  31. <div class="col-sm-6">
  32. <p>
  33. <strong>Method</strong>
  34. {{ ping.method }}
  35. </p>
  36. </div>
  37. {% endif %}
  38. {% if ping.scheme == "email" %}
  39. <div class="col-sm-6">
  40. <p>
  41. <strong>From</strong>
  42. {{ ping.ua }}
  43. </p>
  44. </div>
  45. {% else %}
  46. <div class="col-sm-12">
  47. <p>
  48. <strong>User Agent</strong>
  49. <span class="ua">{{ ping.ua }}</span>
  50. </p>
  51. </div>
  52. {% endif %}
  53. </div>
  54. {% if ping.body %}
  55. <h4>Request Body</h4>
  56. <pre>{{ ping.body }}</pre>
  57. {% endif %}
  58. </div>