trip styling

This commit is contained in:
2023-05-10 20:52:52 +10:00
parent f7c4bd89f7
commit 4022872723
3 changed files with 272 additions and 44 deletions

View File

@@ -12,6 +12,7 @@ module Adamantium
trips
.combine(:posts)
.order(:start_date)
.reverse
.to_a
end
end

View File

@@ -16,7 +16,7 @@ div class="mb-4 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:t
= trip.subtitle
td
= "#{trip.posts.count} entries"
td class="text-right text-gray-400 dark:text-gray-600"
td class="text-right text-gray-400 dark:text-gray-600 break-normal"
= "#{trip.start_date.strftime("%m %b")}"
== " → "
= "#{trip.end_date.strftime("%m %b")}"