story_details.html 2.6 KB

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