Clean up auto tagging
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200"
|
||||
h1 Admin // Auto tagging
|
||||
|
||||
div class="prose dark:prose-invert max-w-prose mx-auto"
|
||||
div class="prose dark:prose-invert max-w-prose mx-auto mb-12"
|
||||
- auto_taggings.each do |auto_tagging|
|
||||
div id="auto-tag-#{auto_tagging.id}"
|
||||
div id="auto-tag-#{auto_tagging.id}" class="mb-2"
|
||||
== "Tag post with <strong>#{auto_tagging.tag.label}</strong> when <strong>#{auto_tagging.title_only? ? "title" : "content"}</strong> contains <strong>#{auto_tagging.term}</strong>"
|
||||
= " — "
|
||||
button hx-delete="/admin/tags/auto_taggings/#{auto_tagging.id}" hx-target="#auto-tag-#{auto_tagging.id}" delete
|
||||
a class="bg-blue-100 text-blue-600 p-1 rounded no-underline" href="/admin/tags/auto_tagging/new" New
|
||||
div class="max-w-screen-md mx-auto border-t-4 border-solid border-gray-400 dark:border-gray-600"
|
||||
|
@@ -2,6 +2,12 @@ div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:
|
||||
h1 Admin // Auto tagging
|
||||
|
||||
div class="max-w-prose mx-auto"
|
||||
- if errors
|
||||
div class="text-gray-100 dark:text-gray-100 bg-pink-100 dark:bg-pink-600 rounded px-4 py-2 mb-12"
|
||||
p Errors:
|
||||
- errors.each do |error|
|
||||
li = "#{error[1].join(",")}"
|
||||
|
||||
form method="POST" action="/admin/tags/auto_tagging"
|
||||
div class="mb-4"
|
||||
label class="text-gray-800 dark:text-gray-200" for="title_contains" Title contains:
|
||||
|
@@ -1,10 +1,12 @@
|
||||
div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:text-gray-200"
|
||||
h1 Admin
|
||||
|
||||
div class="max-w-prose mx-auto"
|
||||
div class="max-w-prose mx-auto prose dark:prose-invert"
|
||||
ul
|
||||
li
|
||||
a href="/admin/tags" Tags
|
||||
li
|
||||
a href="/admin/tags/auto_tagging" Auto tagging
|
||||
|
||||
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