Add books page
This commit is contained in:
23
app/templates/books/index.html.slim
Normal file
23
app/templates/books/index.html.slim
Normal file
@@ -0,0 +1,23 @@
|
||||
- context.content_for(:title, "Books | ")
|
||||
|
||||
div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200"
|
||||
h1 Books
|
||||
|
||||
div class="mb-12 max-w-prose mx-auto"
|
||||
table class="prose dark:prose-invert table-auto"
|
||||
thead
|
||||
tr
|
||||
td Title
|
||||
td Author
|
||||
td Status
|
||||
- books.each do |book|
|
||||
tr
|
||||
td
|
||||
/ a href="/books/#{book.slug}"
|
||||
= book.name
|
||||
td
|
||||
= book.book_author
|
||||
td
|
||||
= book.book_status
|
||||
|
||||
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