Add auto tagger for posts
This commit is contained in:
14
slices/admin/views/auto_tagging/index.rb
Normal file
14
slices/admin/views/auto_tagging/index.rb
Normal 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
|
14
slices/admin/views/auto_tagging/new.rb
Normal file
14
slices/admin/views/auto_tagging/new.rb
Normal 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
|
@@ -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|
|
||||
|
Reference in New Issue
Block a user