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.

116 lines
3.2 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. {% if subject %}
  62. <div class="col-sm-12">
  63. <p>
  64. <strong>Subject</strong>
  65. <span>{{ subject }}</span>
  66. </p>
  67. </div>
  68. {% endif %}
  69. </div>
  70. {% if ping.body %}
  71. <h4>Request Body</h4>
  72. {% if plain or html %}
  73. <ul class="nav nav-pills">
  74. <li class="active">
  75. <a href="#email-body-raw" data-toggle="tab">Raw Message</a>
  76. </li>
  77. {% if plain %}
  78. <li>
  79. <a href="#email-body-plain" data-toggle="tab">Text</a>
  80. </li>
  81. {% endif %}
  82. {% if html %}
  83. <li>
  84. <a href="#email-body-html" data-toggle="tab">HTML</a>
  85. </li>
  86. {% endif %}
  87. </ul>
  88. <div class="tab-content">
  89. <div id="email-body-raw" class="tab-pane active">
  90. <pre>{{ ping.body }}</pre>
  91. </div>
  92. {% if plain %}
  93. <div id="email-body-plain" class="tab-pane">
  94. <pre>{{ plain }}</pre>
  95. </div>
  96. {% endif %}
  97. {% if html %}
  98. <div id="email-body-html" class="tab-pane">
  99. <pre>{{ html }}</pre>
  100. </div>
  101. {% endif %}
  102. </div>
  103. {% else %}
  104. <pre>{{ ping.body }}</pre>
  105. {% endif %}
  106. {% endif %}
  107. </div>