Tag merging UI

This commit is contained in:
2023-05-07 22:15:37 +10:00
parent 9ef9eda41c
commit 8038da9107
14 changed files with 154 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
module Admin
module Views
module MergeTags
class Index < Admin::View
include Deps["repos.tag_repo"]
expose :tags do
tag_repo.list_with_posts
end
end
end
end
end

View File

@@ -0,0 +1,18 @@
module Admin
module Views
module MergeTags
class New < Admin::View
include Deps["repos.tag_repo"]
expose :tag do |id:|
tag_repo.fetch(id)
end
expose :tags do |id:|
tag_repo.list.reject { |t| t.id.to_s == id.to_s }
end
end
end
end
end