Add ratings to movies

This commit is contained in:
2024-01-26 10:56:44 +11:00
parent 62f3d1b800
commit def06e17e8
4 changed files with 36 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:
tr
td Title
td Year
td Rating
- movies.each do |movie|
tr
td
@@ -16,5 +17,10 @@ div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:
= 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"