diff --git a/slices/admin/repos/post_repo.rb b/slices/admin/repos/post_repo.rb index b2c9b1f..9c1209e 100644 --- a/slices/admin/repos/post_repo.rb +++ b/slices/admin/repos/post_repo.rb @@ -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, diff --git a/slices/admin/templates/bookmarks/index.html.slim b/slices/admin/templates/bookmarks/index.html.slim index e3075b2..6dcfdbb 100644 --- a/slices/admin/templates/bookmarks/index.html.slim +++ b/slices/admin/templates/bookmarks/index.html.slim @@ -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