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.

100 lines
3.3 KiB

10 years ago
9 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 id="my-checks-bottom-actions" 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 in this project, please
  47. {% if request.user == project.owner %}
  48. <a href="{% url 'hc-billing' %}">upgrade your account!</a>
  49. {% else %}
  50. ask <strong>{{ project.owner.email }}</strong> to upgrade their account!
  51. {% endif %}
  52. </div>
  53. {% endif %}
  54. </div>
  55. </div>
  56. {% include "front/update_name_modal.html" %}
  57. {% include "front/update_timeout_modal.html" %}
  58. <div id="ping-details-modal" class="modal">
  59. <div class="modal-dialog">
  60. <div class="modal-content">
  61. <div id="ping-details-body">Loading</div>
  62. <div class="modal-footer">
  63. <a
  64. id="ping-details-log"
  65. href="#"
  66. class="btn btn-default">
  67. Show Log
  68. </a>
  69. <button
  70. type="button"
  71. class="btn btn-default"
  72. data-dismiss="modal">
  73. Got It!
  74. </button>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. {% endblock %}
  80. {% block scripts %}
  81. {% compress js %}
  82. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  83. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  84. <script src="{% static 'js/bootstrap-select.min.js' %}"></script>
  85. <script src="{% static 'js/selectize.min.js' %}"></script>
  86. <script src="{% static 'js/nouislider.min.js' %}"></script>
  87. <script src="{% static 'js/clipboard.min.js' %}"></script>
  88. <script src="{% static 'js/update-timeout-modal.js' %}"></script>
  89. <script src="{% static 'js/adaptive-setinterval.js' %}"></script>
  90. <script src="{% static 'js/checks.js' %}"></script>
  91. {% endcompress %}
  92. {% endblock %}