Clean up tags admin
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
li id="tag-#{tag.id}"
|
||||
li id="tag-#{tag.id}" class="text-gray-800 dark:text-gray-200"
|
||||
= "#{tag.label} (#{tag.posts.count})"
|
||||
= " — "
|
||||
button hx-delete="/admin/tags/#{tag.id}" hx-target="#tag-#{tag.id}" delete
|
@@ -5,8 +5,9 @@ div class="max-w-prose mx-auto"
|
||||
ul
|
||||
- unused_tags.each do |tag|
|
||||
== render "shared/tag", tag: tag
|
||||
li class="py-2"
|
||||
hr
|
||||
- if !unused_tags.empty?
|
||||
li class="py-2"
|
||||
hr
|
||||
- used_tags.each do |tag|
|
||||
== render "shared/tag", tag: tag
|
||||
|
||||
|
Reference in New Issue
Block a user