epic_details.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. <div class="comment-section">
  45. <ul class="alt">
  46. {% for comment in epic.comments.all %}
  47. <li class="flex-col">
  48. <div><h5><i class="fa fa-comment"></i> {{ comment.author }}, le {{ comment.created }}:</h5></b></div>
  49. <div class="comment-display">
  50. {{ comment.content|safe_markdown }}
  51. </div>
  52. </li>
  53. {% endfor %}
  54. </ul>
  55. <form action="{% url 'epic_comment' epic_id=epic.id %}" method="post" accept-charset="utf-8">
  56. {% csrf_token %}
  57. {{ comment_form.as_p }}
  58. <div class="flex-row flex-end" style="margin-top: 10px;">
  59. <input type="submit">
  60. </div>
  61. </form>
  62. </div>
  63. {% endblock %}