From 3e1999acfc11c89e7b7f4df018d75c297b6614bd Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 1 Jul 2023 20:50:21 +1000 Subject: [PATCH] Post page clean up --- app/templates/posts/show.html.slim | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/templates/posts/show.html.slim b/app/templates/posts/show.html.slim index 48256a0..eecc537 100644 --- a/app/templates/posts/show.html.slim +++ b/app/templates/posts/show.html.slim @@ -41,16 +41,16 @@ 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 - - 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: " + div class="mb-12" + - if trip + div class="max-w-prose mx-auto text-gray-600 dark:text-gray-200 flex gap-4" + a href="/trips/#{trip.id}" class="block grow bg-orange-100 hover:bg-orange-200 dark:bg-orange-600 hover:dark:bg-orange-900 rounded px-4 py-2 mb-2" + span class="pr-8"✈️ + = "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" + - 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" - if past_movies.count > 0 div class="max-w-prose mx-auto text-gray-600 dark:text-gray-200 mb-4"