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.

103 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. {% if rw %}
  32. <div id="my-checks-bottom-actions" class="row">
  33. <div class="col-sm-12">
  34. {% if num_available > 0 %}
  35. <form method="post" action="{% url 'hc-add-check' project.code %}" class="text-center">
  36. {% csrf_token %}
  37. <input type="submit" class="btn btn-primary btn-lg" value="Add Check">
  38. </form>
  39. {% if num_available <= 10 %}
  40. <div class="add-check-note">
  41. ({{ checks|length }} in use, {{ num_available }} available)
  42. </div>
  43. {% endif %}
  44. {% else %}
  45. <div class="alert alert-info">
  46. <strong>Check limit reached.</strong>
  47. To add more checks in this project, please
  48. {% if request.user == project.owner %}
  49. <a href="{% url 'hc-billing' %}">upgrade your account!</a>
  50. {% else %}
  51. ask <strong>{{ project.owner.email }}</strong> to upgrade their account!
  52. {% endif %}
  53. </div>
  54. {% endif %}
  55. </div>
  56. </div>
  57. {% endif %}
  58. {% include "front/update_name_modal.html" %}
  59. {% include "front/update_timeout_modal.html" %}
  60. <div id="ping-details-modal" class="modal">
  61. <div class="modal-dialog">
  62. <div class="modal-content">
  63. <div id="ping-details-body">Loading</div>
  64. <div class="modal-footer">
  65. <a
  66. id="ping-details-log"
  67. href="#"
  68. class="btn btn-default">
  69. Show Log
  70. </a>
  71. <button
  72. type="button"
  73. class="btn btn-default"
  74. data-dismiss="modal">
  75. Got It!
  76. </button>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. {% endblock %}
  82. {% block scripts %}
  83. {% compress js %}
  84. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  85. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  86. <script src="{% static 'js/bootstrap-select.min.js' %}"></script>
  87. <script src="{% static 'js/selectize.min.js' %}"></script>
  88. <script src="{% static 'js/nouislider.min.js' %}"></script>
  89. <script src="{% static 'js/clipboard.min.js' %}"></script>
  90. <script src="{% static 'js/update-timeout-modal.js' %}"></script>
  91. <script src="{% static 'js/adaptive-setinterval.js' %}"></script>
  92. <script src="{% static 'js/checks.js' %}"></script>
  93. {% endcompress %}
  94. {% endblock %}