Clean up tags admin

This commit is contained in:
2023-05-06 20:31:23 +10:00
parent 0c74055e27
commit fa146fbfb3
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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