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.

56 lines
1.6 KiB

9 years ago
9 years ago
  1. {% extends "base.html" %}
  2. {% load compress humanize staticfiles hc_extras %}
  3. {% block title %}My Checks - healthchecks.io{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>Log for “{{ check.name|default:check.code }}”</h1>
  8. {% if pings %}
  9. <div class="table-responsive">
  10. <table class="table table-striped log-table">
  11. <tr>
  12. <th>Transport</th>
  13. <th>Time</th>
  14. <th>Remote IP</th>
  15. <th>User Agent</th>
  16. </tr>
  17. {% for ping in pings %}
  18. <tr>
  19. <td>
  20. {% if ping.scheme == "email" %}
  21. Email
  22. {% elif ping.scheme == "http" %}
  23. HTTP
  24. {% elif ping.scheme == "https" %}
  25. HTTPS
  26. {% endif %}
  27. </td>
  28. <td>
  29. <span
  30. data-toggle="tooltip"
  31. title="{{ ping.created }} GMT">
  32. {{ ping.created|naturaltime }}
  33. </span>
  34. </td>
  35. <td class="remote-addr">{{ ping.remote_addr }}</td>
  36. <td class="ua">{{ ping.ua }}</td>
  37. </tr>
  38. {% endfor %}
  39. </table>
  40. </div>
  41. {% else %}
  42. <div class="alert alert-info">Log is empty. This check has not received any pings yet.</div>
  43. {% endif %}
  44. </div>
  45. </div>
  46. {% endblock %}
  47. {% block scripts %}
  48. {% compress js %}
  49. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  50. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  51. <script src="{% static 'js/log.js' %}"></script>
  52. {% endcompress %}
  53. {% endblock %}