story_li.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.weight %}<span>{% include 'weight_svg.html' with weight=story.weight h=20 %}</span>{% endif %}
  14. {# <a href="#" class="disabled annotation"><i class="fa fa-comment"></i> 0</a> #}
  15. </div>
  16. </div>
  17. </div>
  18. <div class="flex-row"> {# ligne 2 #}
  19. <div class="flex-extend"> {# partie gauche #}
  20. <span class="annotation">Ajoutée le {{ story.created|date:"d M. Y" }} par {{ story.author.username }}</span>
  21. </div>
  22. <div> {# partie droite #}
  23. <div class="annotation">
  24. {% if from == "story_index" %}
  25. {% if story.epic_id %}
  26. <a href="{% url 'epic_details' epic_id=story.epic_id %}">{{ story.epic.name }}</a>
  27. {% endif %}
  28. {% endif %}
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </li>