story_details.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. {% if story.closed %}
  11. <h2 class="flex-extend" style="color: grey;">[Terminée] {{ story.name }}</h2>
  12. {% else %}
  13. <h2 class="flex-extend">{{ story.name }}</h2>
  14. {% endif %}
  15. <ul class="actions small">
  16. {% if story.closed %}
  17. <li><a class="button alt icon fa-folder-open tool-btn" href="{% url 'story_reopen' story_id=story.id %}" title="Ré-ouvrir">Ré-ouvrir</a></li>
  18. {% else %}
  19. <li><a class="button special icon fa-check tool-btn" href="{% url 'story_close' story_id=story.id %}" title="Marquer comme terminée">Cloturer</a></li>
  20. {% endif %}
  21. <li><a class="button special icon fa-edit tool-btn" href="{% url 'story_edit' story_id=story.id %}" title="Modifier"></a></li>
  22. <!-- <li><a class="button icon fa-trash tool-btn" href="{% url 'story_delete' story_id=story.id %}" title="Supprimer"></a></li> -->
  23. </ul>
  24. </div>
  25. </header>
  26. <hr>
  27. <div class="description">
  28. {{ story.description|safe_markdown }}
  29. </div>
  30. <hr>
  31. <div class="flex-row">
  32. <h5>Assignée à</h5>
  33. <ul class="tags-list">
  34. {% for user in story.assignees.all %}
  35. <li>{{ user.get_full_name }}</li>
  36. {% empty %}
  37. <li>(Aucun)</li>
  38. {% endfor %}
  39. </ul>
  40. </div>
  41. <div class="flex-row">
  42. <h5>Sprints</h5>
  43. <ul class="tags-list">
  44. {% for sprint in story.sprints.all %}
  45. <li>{{ sprint }}</li>
  46. {% empty %}
  47. <li>(Aucun)</li>
  48. {% endfor %}
  49. </ul>
  50. </div>
  51. {% endblock %}