27 lines
791 B
Plaintext
27 lines
791 B
Plaintext
- context.content_for(:title, "Movies | ")
|
|
|
|
div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200"
|
|
h1 🍿 Movies
|
|
|
|
div class="mb-12 max-w-prose mx-auto"
|
|
table class="prose dark:prose-invert table-auto"
|
|
thead
|
|
tr
|
|
td Title
|
|
td Year
|
|
td Rating
|
|
- movies.each do |movie|
|
|
tr
|
|
td
|
|
a href="#{movie.url}"
|
|
= movie.title
|
|
td
|
|
= movie.year
|
|
td class="min-w-32"
|
|
- if movie.rating > 0
|
|
== "#{'🌕' * movie.rating.floor}#{'🌗' * (movie.rating % movie.rating.floor).ceil}"
|
|
- else
|
|
== " "
|
|
|
|
div class="max-w-screen-md mx-auto border-t border-solid border-gray-200 dark:border-gray-600"
|