story_details.html 1.1 KB

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