epic_details.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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="flex-row">
  26. <h4 class="flex-extend">Stories</h4>
  27. <a href="{% url 'story_create' epic_id=epic.id %}">
  28. <i class="fa fa-plus"></i> Ajouter une story
  29. </a>
  30. </div>
  31. {% if epic.stories.count %}
  32. <ul class="alt issues-list">
  33. {% for story in epic.stories.all %}
  34. {% include 'story_li.html' with story=story from='epic_details' %}
  35. {% endfor %}
  36. </ul>
  37. {% else %}
  38. <span class="annotation">(Aucune story)</span>
  39. {% endif %}
  40. <div class="description">
  41. {{ epic.description|safe_markdown }}
  42. </div>
  43. <hr>
  44. {% include '_comment_div.html' with com_pack=com_pack %}
  45. {% endblock %}