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.

61 lines
1.8 KiB

6 years ago
  1. {% extends "base.html" %}
  2. {% load compress static hc_extras %}
  3. {% block title %}{{ site_name }}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1 class="settings-title">
  8. My Projects
  9. </h1>
  10. <div id="project-selector" class="row">
  11. {% for project in projects %}
  12. <a href="{% url 'hc-checks' project.code %}">
  13. <div class="col-sm-6 col-md-4">
  14. <div class="panel project {% if project.id == last_project_id %}selected{% endif %}">
  15. <div class="status ic-{{ project.overall_status }}"></div>
  16. <h4>{{ project }}</h4>
  17. <div>
  18. {{ project.n_checks }}
  19. check{{ project.n_checks|pluralize }},
  20. {{ project.n_channels }}
  21. integration{{ project.n_channels|pluralize }}
  22. </div>
  23. <div class="text-muted">
  24. {{ project.owner_email }}
  25. </div>
  26. </div>
  27. </div>
  28. </a>
  29. {% endfor %}
  30. <a id="add-project" href="#" data-toggle="modal" data-target="#add-project-modal">
  31. <div class="col-sm-6 col-md-4">
  32. <div class="panel project">
  33. New Project&hellip;
  34. </div>
  35. </div>
  36. </a>
  37. </div>
  38. </div>
  39. </div>
  40. {% include "accounts/add_project_modal.html" %}
  41. {% endblock %}
  42. {% block scripts %}
  43. {% compress js %}
  44. <script src="{% static 'js/jquery-3.6.0.min.js' %}"></script>
  45. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  46. <script src="{% static 'js/add_project_modal.js' %}"></script>
  47. {% endcompress %}
  48. {% endblock %}