Fix trips

This commit is contained in:
2023-05-09 22:12:26 +10:00
parent 0b427934fc
commit 76e9e06e86
4 changed files with 195 additions and 53 deletions

View File

@@ -29,12 +29,13 @@ article class="h-entry"
- if post.location
img class="shadow-solid shadow-pink-100 dark:shadow-pink-200 rounded mb-4" src=post.large_map
div class="max-w-prose mx-auto text-gray-600 dark:text-gray-200 flex gap-4"
div class="block grow bg-orange-100 dark:bg-orange-600 rounded px-4 py-2 mb-12"
a href="/trips/#{trip.id}"
= "✈️ Part of the trip: "
strong #{trip.name}
| →
- if trip
div class="max-w-prose mx-auto text-gray-600 dark:text-gray-200 flex gap-4"
div class="block grow bg-orange-100 dark:bg-orange-600 rounded px-4 py-2 mb-12"
a href="/trips/#{trip.id}"
= "✈️ Part of the trip: "
strong #{trip.name}
| →
- if post.tags.map(&:label).include? "weekly"
div class="max-w-prose mx-auto text-gray-600 dark:text-gray-200 flex gap-4"
div class="grow" hx-get="/post/top_tracks/#{post.slug}" hx-trigger="load"