Add category and tag to pages

This commit is contained in:
Christophe Vilayphiou committed 2012-05-14 00:33:52 +08:00
1 parent e40c76bf5f
commit cf8d20dc84
6 files changed
+25 -4

No files matched your search

@@ -35,10 +35,13 @@ class Admin::PagesController < ApplicationController
case @item.module_app.key
when 'announcement'
@categories = BulletinCategory.all
@tags = AnnouncementTag.all
when 'news'
@categories = NewsBulletinCategory.all
@tags = NewsTag.all
when 'web_resource'
@categories = WebLinkCategory.all
@tags = WebResourceTag.all
end
else
@categories = nil