diff --git a/themes/intotheeast/templates/partials/trip-feed-col.html.twig b/themes/intotheeast/templates/partials/trip-feed-col.html.twig new file mode 100644 index 0000000..aea4ab6 --- /dev/null +++ b/themes/intotheeast/templates/partials/trip-feed-col.html.twig @@ -0,0 +1,83 @@ +{% import 'macros/stats.html.twig' as stats_m %} +{% import 'macros/cycling.html.twig' as cycling_m %} +
+{% if pre_departure %} + {# ── Pre-departure landing state (home-active only) ──────────── #} +
+

{{ trip_page.title }}

+ {% if trip_page.header.date_start %} +

Departing {{ trip_page.header.date_start|date('d M Y') }}

+ {% endif %} + Coming soon +
+
+
+

The journey hasn't begun yet — check back once we're on the road.

+ +
+{% else %} +
+

{{ trip_page.title }}

+ {% if trip_page.header.date_start %} +

+ {{ trip_page.header.date_start|date('d M Y') }} + {% if trip_page.header.date_end %} — {{ trip_page.header.date_end|date('d M Y') }}{% else %} — Ongoing{% endif %} +

+ {% endif %} + + {{ journal_count }} journal {{ journal_count == 1 ? 'entry' : 'entries' }} + {% if story_count > 0 %} · {{ story_count }} {{ story_count == 1 ? 'story' : 'stories' }}{% endif %} + +
+
+ + + +
+ {% if show_sort %} + + {% endif %} +
+
+ + {% if has_gpx %} + + {% endif %} +
+
+ + {{ stats_m.stats_panel(journal_entries, trip_page, journal_count, has_gpx) }} + + {% if has_gpx %} + {{ cycling_m.cycling_panel() }} + {% endif %} + +
+ {% if all_items|length > 0 %} + {% for item in all_items %} + {% set entry = item.page %} + {% if item.type == 'journal' %} + {% include 'partials/entry-journal.html.twig' %} + {% else %} + {% include 'partials/entry-story.html.twig' %} + {% endif %} + {% endfor %} + {% else %} +

No entries yet. The journey is about to begin.

+ {% endif %} + +
+ + +{% endif %} +