full working gem for gallery including frontend and backend

This commit is contained in:
harrybomrah committed 2014-05-05 14:07:18 +08:00
1 parent 3b7e9ac0b3
commit db5294c6ff
54 files changed
+6679 -11

No files matched your search

+10 -1
View File
@@ -11,9 +11,18 @@ module Gallery
side_bar do
head_label_i18n 'gallery.gallery', icon_class: "icons-pictures"
available_for [:admin,:manager,:sub_manager]
active_for_controllers ({:private=>['gallery']})
active_for_controllers (['admin/galleries','admin/images'])
head_link_path "admin_galleries_path"
context_link 'gallery.all',
:link_path=>"admin_galleries_path" ,
:priority=>1,
:active_for_action=>{'admin/galleries'=>"index"}
context_link 'gallery.new',
:link_path=>"new_admin_gallery_path" ,
:priority=>2,
:active_for_action=>{'admin/galleries'=>"new"}
end
end
end