story_li.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!-- story item in used in stories indexes -->
  2. <li class="story-item" id="story_{{ story_id }}" data-id="{{ story_id }}">
  3. <div class="flex-col">
  4. <div class="flex-row "> {# ligne 1 #}
  5. <div class="flex-extend"> {# partie gauche #}
  6. <div class="story-title">
  7. <a href="{% url 'story_details' story_id=story.id %}?from={{ from }}"{% if story.closed %}class="story-closed"{% endif %}> {{ story.name }} </a>
  8. </div>
  9. </div>
  10. <div> {# partie droite #}
  11. <div class="flex-row controls">
  12. {% if story.running %}<span class="running">En cours</span>{% endif %}
  13. {% if story.story_type == 1 %}<span class="new-story">NEW</span>{% endif %}
  14. {% if story.story_type == 2 %}<span class="unplanned-story">Non-Planifiée</span>{% endif %}
  15. {% if story.weight %}<span>{% include 'weight_svg.html' with weight=story.weight h=20 %}</span>{% endif %}
  16. {# <a href="#" class="disabled annotation"><i class="fa fa-comment"></i> 0</a> #}
  17. </div>
  18. </div>
  19. </div>
  20. <div class="flex-row"> {# ligne 2 #}
  21. <div class="flex-extend"> {# partie gauche #}
  22. {% if from == "story_index" %}
  23. {% if story.epic_id %}
  24. <div class="annotation">
  25. <a href="{% url 'epic_details' epic_id=story.epic_id %}">{{ story.epic.name }}</a>
  26. </div>
  27. {% endif %}
  28. {% endif %}
  29. </div>
  30. <div> {# partie droite #}
  31. <div class="annotation">
  32. <span class="annotation">Ajoutée le {{ story.created|date:"d M. Y" }} par {{ story.author.username }}</span>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </li>