From 0cb573946e489809a9f0a1b8bebc41aacf167a79 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 21 Aug 2012 17:37:25 +0800 Subject: [PATCH] update item page --- app/controllers/admin/module_apps_controller.rb | 3 +++ app/controllers/admin/page_parts_controller.rb | 6 ++++++ app/controllers/admin/pages_controller.rb | 3 +++ 3 files changed, 12 insertions(+) diff --git a/app/controllers/admin/module_apps_controller.rb b/app/controllers/admin/module_apps_controller.rb index cec6133f..f747d08b 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 b6c5b313..4e4b665d 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 cf88ad48..4a9c5408 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