From fedca56ffbb4e97e5caa35ddb64a8443df1b6ced Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 1 Jul 2023 12:34:30 +1000 Subject: [PATCH] Link to book posts --- app/templates/books/index.html.slim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/templates/books/index.html.slim b/app/templates/books/index.html.slim index c0d6440..09736b5 100644 --- a/app/templates/books/index.html.slim +++ b/app/templates/books/index.html.slim @@ -16,7 +16,8 @@ div class="mb-12 prose dark:prose-invert max-w-prose mx-auto" div class="rounded-md uppercase text-xs #{book.status_colour} px-2 w-full text-center" = book.status_label td - = book.name + a href="/post/#{book.slug}" + = book.name td = book.authors - to_read.each do |book| @@ -25,7 +26,8 @@ div class="mb-12 prose dark:prose-invert max-w-prose mx-auto" div class="rounded-md uppercase text-xs #{book.status_colour} px-2 w-full text-center" = book.status_label td - = book.name + a href="/post/#{book.slug}" + = book.name td = book.authors - read.each do |book| @@ -34,7 +36,8 @@ div class="mb-12 prose dark:prose-invert max-w-prose mx-auto" div class="rounded-md uppercase text-xs #{book.status_colour} px-2 w-full text-center" = book.status_label td - = book.name + a href="/post/#{book.slug}" + = book.name td = book.authors