From 827429c5511a0d5d7d53cf1b84556ab0b6951b48 Mon Sep 17 00:00:00 2001 From: Mischa Date: Sat, 27 Jun 2026 20:30:41 +0200 Subject: [PATCH] refactor(theme): trip.html.twig uses shared trip-feed-col partial + initTripStats Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01BftDn9vu9SonFAY4vxu4uk --- themes/intotheeast/templates/trip.html.twig | 101 +++----------------- 1 file changed, 12 insertions(+), 89 deletions(-) diff --git a/themes/intotheeast/templates/trip.html.twig b/themes/intotheeast/templates/trip.html.twig index 3c5e529..c3bf358 100644 --- a/themes/intotheeast/templates/trip.html.twig +++ b/themes/intotheeast/templates/trip.html.twig @@ -67,57 +67,18 @@ -
-
-

{{ page.title }}

- {% if page.header.date_start %} -

- {{ page.header.date_start|date('d M Y') }} - {% if page.header.date_end %} — {{ 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 has_gpx %} - - {% endif %} -
-
- - {{ stats_m.stats_panel(journal_entries, 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 %} - -
-
+ {% include 'partials/trip-feed-col.html.twig' with { + trip_page: page, + all_items: all_items, + journal_entries: journal_entries, + journal_count: journal_count, + story_count: story_count, + has_gpx: has_gpx, + gpx_urls: gpx_urls, + gps_points: gps_points, + show_sort: true, + pre_departure: false + } only %}