Add top track to weekly post
This commit is contained in:
@@ -24,6 +24,10 @@ article class="h-entry"
|
||||
- if post.location
|
||||
img class="shadow-solid shadow-pink-100 dark:shadow-pink-200 rounded mb-4" src=post.large_map
|
||||
|
||||
- if post.tags.map(&:label).include? "weekly"
|
||||
div class="max-w-prose mx-auto text-gray-600 dark:text-gray-200 flex"
|
||||
div class="mx-auto" hx-get="/post/top_tracks/#{post.slug}" hx-trigger="load"
|
||||
|
||||
div class="mb-4 max-w-screen-md mx-auto border-t-4 border-solid border-gray-400 dark:border-gray-600"
|
||||
|
||||
div class="max-w-prose mx-auto text-gray-600 dark:text-gray-200 flex"
|
||||
|
7
app/templates/posts/top_tracks.html.slim
Normal file
7
app/templates/posts/top_tracks.html.slim
Normal file
@@ -0,0 +1,7 @@
|
||||
a href=url class="block flex bg-pink-100 dark:bg-pink-600 rounded px-4 py-2 mb-12"
|
||||
div class="mr-4 my-auto"
|
||||
img class="rounded h-34 w-34 my-auto" src=image
|
||||
div
|
||||
p class="text-lg" Top track this week
|
||||
p class="text-xl"= "#{name} by #{artist}"
|
||||
|
Reference in New Issue
Block a user