Syndicate to Day One from Admin pages
This commit is contained in:
@@ -20,6 +20,8 @@ div class="max-w-prose mx-auto" x-data="{ activeTab: 0 }"
|
||||
small class="text-gray-400 dark:text-gray-600" = post.slug
|
||||
td
|
||||
= post.published_at&.strftime("%d %b %Y")
|
||||
td
|
||||
a href="/admin/posts/#{post.id}" edit
|
||||
td
|
||||
button class="text-red-600" hx-delete="/admin/posts/#{post.id}" hx-target="#post-#{post.id}" delete
|
||||
td
|
||||
@@ -34,6 +36,8 @@ div class="max-w-prose mx-auto" x-data="{ activeTab: 0 }"
|
||||
small class="text-gray-400 dark:text-gray-600" = post.slug
|
||||
td
|
||||
= post.published_at&.strftime("%d %b %Y")
|
||||
td
|
||||
a href="/admin/posts/#{post.id}" edit
|
||||
td
|
||||
button class="text-red-600" hx-delete="/admin/posts/#{post.id}" hx-target="#post-#{post.id}" delete
|
||||
td
|
||||
|
12
slices/admin/templates/posts/show.html.slim
Normal file
12
slices/admin/templates/posts/show.html.slim
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200 bg-red-100"
|
||||
h3 Syndicated to
|
||||
ul
|
||||
- post.syndication_sources.to_a.each do |name, url|
|
||||
li
|
||||
a href=url
|
||||
= name
|
||||
button hx-post="/admin/posts/#{post.id}/syndicate/day_one" Send to Day One
|
||||
article class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200 prose-a:text-blue-600 prose-a:no-underline hover:prose-a:underline prose-img:rounded"
|
||||
h1= post.name
|
||||
== post.content
|
Reference in New Issue
Block a user