Clean up admin area
This commit is contained in:
@@ -6,7 +6,7 @@ div class="max-w-prose mx-auto"
|
|||||||
thead
|
thead
|
||||||
th Details
|
th Details
|
||||||
th Date
|
th Date
|
||||||
th Actions
|
th colspan="2" Actions
|
||||||
tbody
|
tbody
|
||||||
- bookmarks.each do |bookmark|
|
- bookmarks.each do |bookmark|
|
||||||
tr id="bookmark-#{bookmark.id}"
|
tr id="bookmark-#{bookmark.id}"
|
||||||
@@ -25,7 +25,8 @@ div class="max-w-prose mx-auto"
|
|||||||
td
|
td
|
||||||
= bookmark.published_at&.strftime("%d %b %Y")
|
= bookmark.published_at&.strftime("%d %b %Y")
|
||||||
td
|
td
|
||||||
button hx-delete="/admin/bookmarks/#{bookmark.id}" hx-target="#bookmark-#{bookmark.id}" delete
|
button class="text-red-600" hx-delete="/admin/bookmarks/#{bookmark.id}" hx-target="#bookmark-#{bookmark.id}" delete
|
||||||
|
td
|
||||||
button hx-post="/admin/bookmarks/#{bookmark.id}/archive" archive
|
button hx-post="/admin/bookmarks/#{bookmark.id}/archive" archive
|
||||||
|
|
||||||
div class="max-w-screen-md mx-auto border-t-4 border-solid border-gray-400 dark:border-gray-600"
|
div class="max-w-screen-md mx-auto border-t-4 border-solid border-gray-400 dark:border-gray-600"
|
||||||
|
@@ -6,22 +6,21 @@ div class="max-w-prose mx-auto"
|
|||||||
thead
|
thead
|
||||||
th Details
|
th Details
|
||||||
th Date
|
th Date
|
||||||
th Actions
|
th colspan="2" Actions
|
||||||
tbody
|
tbody
|
||||||
- posts.each do |post|
|
- posts.each do |post|
|
||||||
tr id="post-#{post.id}"
|
tr id="post-#{post.id}"
|
||||||
td
|
td
|
||||||
div
|
div
|
||||||
= post.name
|
= post.name
|
||||||
a class="no-underline" href=post.slug
|
a class="no-underline" href="/post/#{post.slug}"
|
||||||
small class="text-gray-400 dark:text-gray-600" = post.slug
|
small class="text-gray-400 dark:text-gray-600" = post.slug
|
||||||
td
|
td
|
||||||
= post.published_at&.strftime("%d %b %Y")
|
= post.published_at&.strftime("%d %b %Y")
|
||||||
td
|
td
|
||||||
div
|
button class="text-red-600" hx-delete="/admin/bookmarks/#{post.id}" hx-target="#post-#{post.id}" delete
|
||||||
button hx-delete="/admin/bookmarks/#{post.id}" hx-target="#post-#{post.id}" delete
|
td
|
||||||
div
|
button hx-post="/admin/bookmarks/#{post.id}/archive" unpublish
|
||||||
button hx-post="/admin/bookmarks/#{post.id}/archive" archive
|
|
||||||
|
|
||||||
div class="max-w-screen-md mx-auto border-t-4 border-solid border-gray-400 dark:border-gray-600"
|
div class="max-w-screen-md mx-auto border-t-4 border-solid border-gray-400 dark:border-gray-600"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user