Refactor app in to its own slice
This commit is contained in:
26
slices/main/templates/movies/index.html.slim
Normal file
26
slices/main/templates/movies/index.html.slim
Normal file
@@ -0,0 +1,26 @@
|
||||
- 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"
|
Reference in New Issue
Block a user