epic_details.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {% extends '_layout.html' %}
  2. {% load commenting %}
  3. {% block title %}
  4. {{ epic.name }}
  5. {% endblock %}
  6. {% block breadcrumb %}
  7. <li><a href="{% url 'index' %}">Accueil</a></li>
  8. <li><a>Epic #{{ epic.id }}</a></li>
  9. {% endblock %}
  10. {% block main %}
  11. {% load martortags %}
  12. <header>
  13. <div class="flex-row">
  14. <h2 class="flex-extend">{{ epic.name }}</h2>
  15. <ul class="actions small">
  16. <li><a class="button special icon fa-edit tool-btn" href="{% url 'epic_edit' epic_id=epic.id %}" title="Modifier"></a></li>
  17. <!-- <li><a class="button icon fa-trash tool-btn" href="{% url 'epic_delete' epic_id=epic.id %}"></a></li> -->
  18. </ul>
  19. </div>
  20. </header>
  21. <div class="flex-row flex-space-around">
  22. <span>Taille: <b>{{ epic.size }}</b></span>
  23. <span>Valeur: <b>{{ epic.value }}</b></span>
  24. </div>
  25. <hr>
  26. <div class="description">
  27. {{ epic.description|safe_markdown }}
  28. </div>
  29. <hr>
  30. <div class="flex-row">
  31. <h4 class="flex-extend">Stories</h4>
  32. <a href="{% url 'story_create' epic_id=epic.id %}">
  33. <i class="fa fa-plus"></i> Ajouter une story
  34. </a>
  35. </div>
  36. {% if epic.stories.count %}
  37. <ul class="alt issues-list">
  38. {% for story in epic.stories.all %}
  39. {% include 'story_li.html' with story=story from='epic_details' %}
  40. {% endfor %}
  41. </ul>
  42. {% else %}
  43. <span class="annotation">(Aucune story)</span>
  44. {% endif %}
  45. <hr>
  46. {% comments_for epic %}
  47. {% endblock %}