story_details.html 2.8 KB

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