story_details.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {% extends '_layout.html' %}
  2. {% block breadcrumb %}
  3. <li><a href="{% url 'index' %}">Accueil</a></li>
  4. <li><a href="{% url 'epic_details' epic_id=story.epic.id %}">Epic #{{ story.epic.id }}</a></li>
  5. <li><a>Story #{{ story.id }}</a></li>
  6. {% endblock %}
  7. {% block main %}
  8. {% load martortags %}
  9. <header>
  10. <div class="flex-row">
  11. <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>
  12. <blockquote class="annotation">Créée par {{ story.author.get_full_name }}, le {{ story.created }}</blockquote>
  13. </div>
  14. <div class="flex-row">
  15. {% if story.closed %}
  16. <h2 class="flex-extend" style="color: grey;">[Terminée] {{ story.name }}</h2>
  17. {% else %}
  18. <h2 class="flex-extend">{{ story.name }}</h2>
  19. {% endif %}
  20. <ul class="actions small">
  21. {% if story.closed %}
  22. <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>
  23. {% else %}
  24. <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>
  25. {% endif %}
  26. <li><a class="button special icon fa-edit tool-btn" href="{% url 'story_edit' story_id=story.id %}" title="Modifier"></a></li>
  27. <!-- <li><a class="button icon fa-trash tool-btn" href="{% url 'story_delete' story_id=story.id %}" title="Supprimer"></a></li> -->
  28. </ul>
  29. </div>
  30. </header>
  31. <hr>
  32. <div class="description">
  33. {{ story.description|safe_markdown }}
  34. </div>
  35. <hr>
  36. <div class="flex-row">
  37. <h5>Assignée à</h5>
  38. <ul class="tags-list">
  39. {% for user in story.assignees.all %}
  40. <li>{{ user.get_full_name }}</li>
  41. {% empty %}
  42. <li>(Aucun)</li>
  43. {% endfor %}
  44. </ul>
  45. </div>
  46. <div class="flex-row">
  47. <h5>Sprints</h5>
  48. <ul class="tags-list">
  49. {% for sprint in story.sprints.all %}
  50. <li>{{ sprint }}</li>
  51. {% empty %}
  52. <li>(Aucun)</li>
  53. {% endfor %}
  54. </ul>
  55. </div>
  56. {% endblock %}