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.

65 lines
2.1 KiB

  1. {% extends "base.html" %}
  2. {% load compress static hc_extras %}
  3. {% block title %}Project Settings - {{ project }}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1 class="settings-title">
  8. My Projects
  9. <div class="pull-right">
  10. <button
  11. class="btn btn-primary"
  12. data-toggle="modal"
  13. data-target="#add-project-modal">Create New Project</button>
  14. </div>
  15. </h1>
  16. <div id="project-selector" class="row">
  17. {% for project in projects%}
  18. <a href="{% url 'hc-checks' project.code %}">
  19. <div class="col-sm-6 col-md-4">
  20. <div class="panel project {% if project == request.profile.current_project %}selected{% endif %}">
  21. {% if project == request.profile.current_project %}
  22. <div class="marker">Current Project</div>
  23. {% endif %}
  24. <h4>{{ project }}</h4>
  25. <div>
  26. {% with project.check_set.count as n %}
  27. {{ n }} check{{ n|pluralize }},
  28. {% endwith %}
  29. {% with project.channel_set.count as n %}
  30. {{ n }} integration{{ n|pluralize }}
  31. {% endwith %}
  32. </div>
  33. <div class="text-muted">
  34. {{ project.owner.email }}
  35. </div>
  36. </div>
  37. </div>
  38. </a>
  39. {% empty %}
  40. <div class="col-sm-12">
  41. <p>You do not have any projects.</p>
  42. </div>
  43. {% endfor %}
  44. </div>
  45. </div>
  46. </div>
  47. {% include "accounts/add_project_modal.html" %}
  48. {% endblock %}
  49. {% block scripts %}
  50. {% compress js %}
  51. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  52. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  53. <script src="{% static 'js/project.js' %}"></script>
  54. {% endcompress %}
  55. {% endblock %}