Page form with front end style

This commit is contained in:
chris committed 2013-10-28 16:29:23 +08:00
1 parent 2f41828abd
commit 42d0afe65c
11 files changed
+214 -194

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ class Admin::ItemsController < OrbitBackendController
m = {}
m["main"] = [module_app.title, module_app.id.to_s]
m["sub"] = module_app.app_pages.map{|name, data| [t(data["i18n"]), name]} rescue []
m["sub"] << [I18n.t('default_widget.name'),'default_widget'] if module_app.has_default_widget?
m["sub"] << [I18n.t('default_widget.default_widget'),'default_widget'] if module_app.has_default_widget?
m["category"] = module_app.categories.map{|category| [category.title, category.id.to_s] } rescue ''
m["tags"] = module_app.tags.map{|tag| [tag.name, tag.id.to_s] } rescue ''
m["count"] = module_app.get_registration.get_data_count.to_a