update item page
This commit is contained in:
1 parent
a1560ebcf5
commit
0cb573946e
3 files changed
+12
No files matched your search
@@ -27,6 +27,9 @@ class Admin::ModuleAppsController < ApplicationController
|
|||||||
when 'web_resource'
|
when 'web_resource'
|
||||||
@categories = WebLinkCategory.all
|
@categories = WebLinkCategory.all
|
||||||
@tags = WebResourceTag.all
|
@tags = WebResourceTag.all
|
||||||
|
when 'archive'
|
||||||
|
@categories = ArchiveFileCategory.all
|
||||||
|
@tags = ArchiveTag.all
|
||||||
end
|
end
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.js {}
|
format.js {}
|
||||||
|
|||||||
@@ -43,6 +43,9 @@ class Admin::PagePartsController < ApplicationController
|
|||||||
when 'web_resource'
|
when 'web_resource'
|
||||||
@categories = WebLinkCategory.all
|
@categories = WebLinkCategory.all
|
||||||
@tags = WebResourceTag.all
|
@tags = WebResourceTag.all
|
||||||
|
when 'archive'
|
||||||
|
@categories = ArchiveFileCategory.all
|
||||||
|
@tags = ArchiveTag.all
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -102,6 +105,9 @@ class Admin::PagePartsController < ApplicationController
|
|||||||
when 'web_resource'
|
when 'web_resource'
|
||||||
@categories = WebLinkCategory.all
|
@categories = WebLinkCategory.all
|
||||||
@tags = WebResourceTag.all
|
@tags = WebResourceTag.all
|
||||||
|
when 'archive'
|
||||||
|
@categories = ArchiveFileCategory.all
|
||||||
|
@tags = ArchiveTag.all
|
||||||
end
|
end
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|||||||
@@ -54,6 +54,9 @@ class Admin::PagesController < ApplicationController
|
|||||||
when 'web_resource'
|
when 'web_resource'
|
||||||
@categories = WebLinkCategory.all
|
@categories = WebLinkCategory.all
|
||||||
@tags = WebResourceTag.all
|
@tags = WebResourceTag.all
|
||||||
|
when 'archive'
|
||||||
|
@categories = ArchiveFileCategory.all
|
||||||
|
@tags = ArchiveTag.all
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@categories = nil
|
@categories = nil
|
||||||
|
|||||||
Reference in new issue
Block a user