Skip to content
Snippets Groups Projects
Commit eaedbe84 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4184: updating timeline to use granular year-month-day

parent 14cf3057
No related branches found
No related tags found
1 merge request!47ISTWCMS-4184 m26lebla theme timeline
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<span class="timeline-year">{{ year }}</span> <span class="timeline-year">{{ year }}</span>
<ol> <ol>
{% for month, entries in timeline_item %} {% for month, days in timeline_item %}
{% if style == 'month' %} {% if style == 'month' %}
<li> <li>
...@@ -19,15 +19,19 @@ ...@@ -19,15 +19,19 @@
<ol> <ol>
{% endif %} {% endif %}
{% for entry in entries %} {% for day in days %}
<li class="timeline-info"> {% for entry in day %}
{% if entry.image %}
<img src="{{ entry.image }}" alt="" class="timeline-photo"/> <li class="timeline-info">
{% endif %} {% if entry.image %}
<div class="timeline-headline"><strong>{{ entry.headline }}</strong></div> <img src="{{ entry.image }}" alt="" class="timeline-photo"/>
<p>{{ entry.content }}</p> {% endif %}
</li> <div class="timeline-headline"><strong>{{ entry.headline }}</strong></div>
<p>{{ entry.content }}</p>
</li>
{% endfor %}
{% endfor %} {% endfor %}
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment