Fix link for ad_banner

Add missing helper for web_link_category
Show design's js in front-end
This commit is contained in:
chris committed 2013-01-07 00:36:48 +08:00
1 parent 736bda0679
commit be00cec4d7
4 files changed
+16 -3

No files matched your search

@@ -0,0 +1,13 @@
module Panel::WebResource::BackEnd::WebLinkCategorysHelper
include ActionView::Helpers::UrlHelper
def show_web_link_permission_link(web_link)
type = 'edit'
oa = web_link.get_object_auth_by_title(type)
if oa.nil?
web_link.object_auths.new(title: type ).save
oa = web_link.get_object_auth_by_title(type)
end
link_to t(:category_auth),admin_object_auth_ob_auth_path(oa)
end
end