Add auto tagger for posts

This commit is contained in:
2023-05-06 19:58:59 +10:00
parent c4bd903e74
commit 9f8359d782
25 changed files with 424 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
module Admin
module Views
module AutoTagging
class Index < Admin::View
include Deps["repos.auto_tagging_repo"]
expose :auto_taggings do
auto_tagging_repo.listing
end
end
end
end
end

View File

@@ -0,0 +1,14 @@
module Admin
module Views
module AutoTagging
class New < Admin::View
include Deps["repos.tag_repo"]
expose :tags do
tag_repo.list.to_a
end
end
end
end
end

View File

@@ -6,7 +6,7 @@ module Admin
include Deps["repos.tag_repo"]
expose :tags do
tag_repo.list.to_a
tag_repo.list_with_posts.to_a
end
expose :unused_tags do |tags|