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.

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