Update trips
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
div class="mb-2 h-entry"
|
||||
div class="mb-2 h-entry relative"
|
||||
- if !first
|
||||
div class="rounded-full bg-orange-100 p-2 w-1 h-4 inline-block mb-2 dark:bg-orange-400"
|
||||
div class="-top-4 absolute rounded-full border-2 bg-orange-100 border-orange-200 p-1 w-1 h-2 inline-block dark:border-orange-400 dark:bg-orange-400"
|
||||
- if first
|
||||
div class="w-2 h-2 inline-block mb-6"
|
||||
= "🛬"
|
||||
div class="inline-block mb-2"
|
||||
span class="mr-2"
|
||||
= "🛬"
|
||||
= trip.start_date
|
||||
|
||||
div class="ml-[7] pl-6 border-solid border-l-2 border-orange-100 dark:border-orange-400"
|
||||
div class="ml-[5] #{ last ? '' : 'mb-[20]'} pl-6 border-solid border-l-2 border-orange-200 dark:border-orange-400"
|
||||
h3 class="text-xl font-semibold text-blue-600"
|
||||
a class="border-b-2 border-transparent hover:border-blue-600 hover:border-b-2" href="/post/#{post.slug}"
|
||||
= post.name
|
||||
@@ -20,5 +22,7 @@ div class="mb-2 h-entry"
|
||||
time class="dt-published" datetime=post.machine_published_at
|
||||
= post.display_published_at
|
||||
- if last
|
||||
div class="w-2 h-2 inline-block mb-6"
|
||||
= "🛫"
|
||||
div class="inline-block mb-6"
|
||||
span class="mr-2"
|
||||
= "🛫"
|
||||
= trip.end_date
|
@@ -1,15 +1,24 @@
|
||||
div class="mb-4 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200"
|
||||
h1 Trips
|
||||
|
||||
div class="h-feed mb-12 max-w-prose mx-auto"
|
||||
- trips.each do |trip|
|
||||
div class="mb-8 h-entry"
|
||||
h3 class="text-xl font-semibold text-blue-600 mb-2"
|
||||
a class="border-b-2 border-transparent hover:border-blue-600 hover:border-b-2" href="/trips/#{trip.id}"
|
||||
= trip.name
|
||||
p class="text-sm text-blue-400"
|
||||
a class="u-url" href="/trips/#{trip.id}"
|
||||
= "#{trip.start_date} - #{trip.end_date}"
|
||||
|
||||
div class="mb-12 max-w-prose mx-auto"
|
||||
table class="prose dark:prose-invert table-auto"
|
||||
- trip_years.each do |year, trips|
|
||||
thead
|
||||
tr colspan=4
|
||||
td class="text-xl" = year
|
||||
- trips.each do |trip|
|
||||
tr
|
||||
td
|
||||
a href="/trips/#{trip.id}"
|
||||
= trip.name
|
||||
td
|
||||
= trip.subtitle
|
||||
td
|
||||
= "#{trip.posts.count} entries"
|
||||
td class="text-right text-gray-400 dark:text-gray-600"
|
||||
= "#{trip.start_date}"
|
||||
== " → "
|
||||
= "#{trip.end_date}"
|
||||
|
||||
div class="max-w-screen-md mx-auto border-t-4 border-solid border-gray-400 dark:border-gray-600"
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user