update item page

This commit is contained in:
unknown 2012-08-21 17:37:25 +08:00 committed by chris
parent a1560ebcf5
commit 0cb573946e
3 changed files with 12 additions and 0 deletions

View File

@ -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 {}

View File

@ -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|

View File

@ -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