This commit is contained in:
2024-02-11 10:11:35 +11:00
parent 9ab228fde0
commit bfe3ee486d
2 changed files with 7 additions and 6 deletions

View File

@@ -16,11 +16,11 @@ module Admin
.commit
next if posts
.post_tags
.where(
post_id: post_id,
tag_id: tag[:id]
).count > 0
.post_tags
.where(
post_id: post_id,
tag_id: tag[:id]
).count > 0
posts.post_tags.changeset(:create, {
post_id: post_id,

View File

@@ -19,7 +19,8 @@ div class="max-w-prose mx-auto" x-data="{ activeTab: 0 }"
tr id="bookmark-#{bookmark.id}"
td
div
= bookmark.name
a href="/bookmark/#{bookmark.slug}"
= bookmark.name
a class="no-underline" href=bookmark.url
small class="text-gray-400 dark:text-gray-600" = bookmark.url
div