story_details.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {% extends '_layout.html' %}
  2. {% block main %}
  3. {% load martortags %}
  4. <header>
  5. <div class="flex-row">
  6. <blockquote class="flex-extend"><a href="{% url 'epic_details' epic_id=story.epic.id %}"><b><i class="fa fa-backward"></i>Retour à {{ story.epic.name }}</b></a></blockquote>
  7. <blockquote class="annotation">Créée par {{ story.author.get_full_name }}, le {{ story.created }}</blockquote>
  8. </div>
  9. <div class="flex-row">
  10. <h2 class="flex-extend">{{ story.name }}</h2>
  11. <ul class="actions small">
  12. <li><a class="button special icon fa-edit tool-btn" href="{% url 'story_edit' story_id=story.id %}"></a></li>
  13. <li><a class="button icon fa-trash tool-btn" href="{% url 'story_delete' story_id=story.id %}"></a></li>
  14. </ul>
  15. </div>
  16. </header>
  17. <hr>
  18. <div class="description">
  19. {{ story.description|safe_markdown }}
  20. </div>
  21. <hr>
  22. <div class="flex-row">
  23. <h5>Assignée à</h5>
  24. <ul class="tags-list">
  25. {% for user in story.assignees.all %}
  26. <li>{{ user.get_full_name }}</li>
  27. {% empty %}
  28. <li>(Aucun)</li>
  29. {% endfor %}
  30. </ul>
  31. </div>
  32. <div class="flex-row">
  33. <h5>Sprints</h5>
  34. <ul class="tags-list">
  35. {% for sprint in story.sprints.all %}
  36. <li>{{ sprint }}</li>
  37. {% empty %}
  38. <li>(Aucun)</li>
  39. {% endfor %}
  40. </ul>
  41. </div>
  42. {% endblock %}