diff --git a/app/controllers/admin/module_apps_controller.rb b/app/controllers/admin/module_apps_controller.rb index cec6133fd..f747d08bf 100644 --- a/app/controllers/admin/module_apps_controller.rb +++ b/app/controllers/admin/module_apps_controller.rb @@ -27,6 +27,9 @@ class Admin::ModuleAppsController < ApplicationController when 'web_resource' @categories = WebLinkCategory.all @tags = WebResourceTag.all + when 'archive' + @categories = ArchiveFileCategory.all + @tags = ArchiveTag.all end respond_to do |format| format.js {} diff --git a/app/controllers/admin/page_parts_controller.rb b/app/controllers/admin/page_parts_controller.rb index b6c5b3132..4e4b665d3 100644 --- a/app/controllers/admin/page_parts_controller.rb +++ b/app/controllers/admin/page_parts_controller.rb @@ -43,6 +43,9 @@ class Admin::PagePartsController < ApplicationController when 'web_resource' @categories = WebLinkCategory.all @tags = WebResourceTag.all + when 'archive' + @categories = ArchiveFileCategory.all + @tags = ArchiveTag.all end end @@ -102,6 +105,9 @@ class Admin::PagePartsController < ApplicationController when 'web_resource' @categories = WebLinkCategory.all @tags = WebResourceTag.all + when 'archive' + @categories = ArchiveFileCategory.all + @tags = ArchiveTag.all end respond_to do |format| diff --git a/app/controllers/admin/pages_controller.rb b/app/controllers/admin/pages_controller.rb index cf88ad488..4a9c54082 100644 --- a/app/controllers/admin/pages_controller.rb +++ b/app/controllers/admin/pages_controller.rb @@ -54,6 +54,9 @@ class Admin::PagesController < ApplicationController when 'web_resource' @categories = WebLinkCategory.all @tags = WebResourceTag.all + when 'archive' + @categories = ArchiveFileCategory.all + @tags = ArchiveTag.all end else @categories = nil