|
|
@@ -7,9 +7,7 @@
|
|
|
|
|
|
<div class="flex-extend"> {# partie gauche #}
|
|
|
<div class="story-title">
|
|
|
-
|
|
|
<a href="{% url 'story_details' story_id=story.id %}?from={{ from }}"{% if story.closed %}class="story-closed"{% endif %}> {{ story.name }} </a>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -27,16 +25,18 @@
|
|
|
<div class="flex-row"> {# ligne 2 #}
|
|
|
|
|
|
<div class="flex-extend"> {# partie gauche #}
|
|
|
- <span class="annotation">Ajoutée le {{ story.created|date:"d M. Y" }} par {{ story.author.username }}</span>
|
|
|
- </div>
|
|
|
+ {% if from == "story_index" %}
|
|
|
+ {% if story.epic_id %}
|
|
|
+ <div class="annotation">
|
|
|
+ <a href="{% url 'epic_details' epic_id=story.epic_id %}">{{ story.epic.name }}</a>
|
|
|
+ </div>
|
|
|
+ {% endif %}
|
|
|
+ {% endif %}
|
|
|
+ </div>
|
|
|
|
|
|
<div> {# partie droite #}
|
|
|
<div class="annotation">
|
|
|
- {% if from == "story_index" %}
|
|
|
- {% if story.epic_id %}
|
|
|
- <a href="{% url 'epic_details' epic_id=story.epic_id %}">{{ story.epic.name }}</a>
|
|
|
- {% endif %}
|
|
|
- {% endif %}
|
|
|
+ <span class="annotation">Ajoutée le {{ story.created|date:"d M. Y" }} par {{ story.author.username }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|