Update trips

This commit is contained in:
2023-05-10 20:39:22 +10:00
parent c4223aab31
commit 2fce0d3967
12 changed files with 384 additions and 63 deletions

View File

@@ -1,9 +1,9 @@
div class="mb-4 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200"
h1 class="mb-0" #{trip.name}
p class="mt-2" class="text-gray-600 dark:text-gray-200 text-sm" (#{trip.start_date} - #{trip.end_date})
/ p class="mt-2" class="text-gray-600 dark:text-gray-200 text-sm" (#{trip.start_date} - #{trip.end_date})
div class="h-feed mb-12 max-w-prose mx-auto"
- posts.each do |post|
== render "shared/compact_post", post: post, first: post.id == posts.first.id, last: post.id == posts.last.id
== render "shared/compact_post", post: post, trip: trip, first: post.id == posts.first.id, last: post.id == posts.last.id
div class="max-w-screen-md mx-auto border-t-4 border-solid border-gray-400 dark:border-gray-600"