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.

63 lines
1.9 KiB

6 years ago
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 icon-{{ project.overall_status }}"></div>
  16. <h4>{{ project }}</h4>
  17. <div>
  18. {% with project.check_set.count as n %}
  19. {{ n }} check{{ n|pluralize }},
  20. {% endwith %}
  21. {% with project.channel_set.count as n %}
  22. {{ n }} integration{{ n|pluralize }}
  23. {% endwith %}
  24. </div>
  25. <div class="text-muted">
  26. {{ project.owner.email }}
  27. </div>
  28. </div>
  29. </div>
  30. </a>
  31. {% endfor %}
  32. <a id="add-project" href="#" data-toggle="modal" data-target="#add-project-modal">
  33. <div class="col-sm-6 col-md-4">
  34. <div class="panel project">
  35. New Project&hellip;
  36. </div>
  37. </div>
  38. </a>
  39. </div>
  40. </div>
  41. </div>
  42. {% include "accounts/add_project_modal.html" %}
  43. {% endblock %}
  44. {% block scripts %}
  45. {% compress js %}
  46. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  47. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  48. <script src="{% static 'js/add_project_modal.js' %}"></script>
  49. {% endcompress %}
  50. {% endblock %}