story_li.html 1.5 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. {% if story.closed %}
  8. <a href="{% url 'story_details' story_id=story.id %}" class="story-closed"> {{ story.name }} </a>
  9. {% else %}
  10. <a href="{% url 'story_details' story_id=story.id %}"> {{ story.name }} </a>
  11. {% endif %}
  12. </div>
  13. </div>
  14. <div> {# partie droite #}
  15. <div class="flex-row controls">
  16. {% if story.running %}<span class="running">En cours</span>{% endif %}
  17. {% if story.weight %}<span>{% include 'weight_svg.html' with weight=story.weight h=20 %}</span>{% endif %}
  18. {# <a href="#" class="disabled annotation"><i class="fa fa-comment"></i> 0</a> #}
  19. </div>
  20. </div>
  21. </div>
  22. <div class="flex-row"> {# ligne 2 #}
  23. <div class="flex-extend"> {# partie gauche #}
  24. <span class="annotation">Ajoutée le {{ story.created|date:"d M. Y" }} par {{ story.author.username }}</span>
  25. </div>
  26. <div> {# partie droite #}
  27. <div class="annotation">
  28. {% if from == "story_index" %}
  29. {% if story.epic_id %}
  30. <a href="{% url 'epic_details' epic_id=story.epic_id %}">{{ story.epic.name }}</a>
  31. {% endif %}
  32. {% endif %}
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </li>