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.

95 lines
3.1 KiB

10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
  1. {% extends "base.html" %}
  2. {% load compress static hc_extras %}
  3. {% block title %}{{ num_down|num_down_title }}{% endblock %}
  4. {% block content %}
  5. {% if checks %}
  6. <div class="row">
  7. <div id="my-checks-tags" class="col-sm-9">
  8. {% for tag, status in tags %}
  9. <div class="btn btn-xs {{ status }} {% if tag in selected_tags %}checked{% endif%}">{{ tag }}</div>
  10. {% endfor %}
  11. </div>
  12. <div class="col-sm-3">
  13. <input
  14. id="search"
  15. type="text"
  16. placeholder="Filter by check name&hellip;"
  17. class="form-control hidden-xs"
  18. value="{{ search }}" />
  19. </div>
  20. </div>
  21. {% endif %}
  22. <div class="row">
  23. <div class="col-sm-12">
  24. {% if checks %}
  25. {% include "front/my_checks_desktop.html" %}
  26. {% else %}
  27. <div class="alert alert-info">The project <strong>{{ project }}</strong> does not have any checks yet.</div>
  28. {% endif %}
  29. </div>
  30. </div>
  31. <div class="row">
  32. <div class="col-sm-12">
  33. {% if num_available > 0 %}
  34. <form method="post" action="{% url 'hc-add-check' project.code %}" class="text-center">
  35. {% csrf_token %}
  36. <input type="submit" class="btn btn-primary btn-lg" value="Add Check">
  37. </form>
  38. {% if num_available <= 10 %}
  39. <div class="add-check-note">
  40. ({{ checks|length }} in use, {{ num_available }} available)
  41. </div>
  42. {% endif %}
  43. {% else %}
  44. <div class="alert alert-info">
  45. <strong>Check limit reached.</strong>
  46. To add more checks, please
  47. <a href="{% url 'hc-billing' %}">upgrade your account!</a>
  48. </div>
  49. {% endif %}
  50. </div>
  51. </div>
  52. {% include "front/update_name_modal.html" %}
  53. {% include "front/update_timeout_modal.html" %}
  54. <div id="ping-details-modal" class="modal">
  55. <div class="modal-dialog">
  56. <div class="modal-content">
  57. <div id="ping-details-body">Loading</div>
  58. <div class="modal-footer">
  59. <a
  60. id="ping-details-log"
  61. href="#"
  62. class="btn btn-default">
  63. Show Log
  64. </a>
  65. <button
  66. type="button"
  67. class="btn btn-default"
  68. data-dismiss="modal">
  69. Got It!
  70. </button>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. {% endblock %}
  76. {% block scripts %}
  77. {% compress js %}
  78. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  79. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  80. <script src="{% static 'js/bootstrap-select.min.js' %}"></script>
  81. <script src="{% static 'js/selectize.min.js' %}"></script>
  82. <script src="{% static 'js/nouislider.min.js' %}"></script>
  83. <script src="{% static 'js/clipboard.min.js' %}"></script>
  84. <script src="{% static 'js/update-timeout-modal.js' %}"></script>
  85. <script src="{% static 'js/adaptive-setinterval.js' %}"></script>
  86. <script src="{% static 'js/checks.js' %}"></script>
  87. {% endcompress %}
  88. {% endblock %}