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.

71 lines
2.0 KiB

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