epic_details.html 1.5 KB

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