fix serval bugs on sidebar.
This commit is contained in:
1 parent
2c69590c36
commit
062ebecae3
10 files changed
+39
-18
No files matched your search
+2
-2
@@ -35,12 +35,12 @@ module AdBanner
|
||||
side_bar do
|
||||
head_label_i18n 'admin.ad_banner',:icon_class=>"icons-landscape"
|
||||
available_for [:admin,:guest,:manager,:sub_manager]
|
||||
active_for_controllers ({:private=>['ad_banners', 'ad_images']})
|
||||
active_for_controllers ({:public=>['admin/ad_banners', 'admin/ad_images']})
|
||||
|
||||
head_link_path "admin_ad_banners_path"
|
||||
|
||||
context_link 'module_authorization',
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: 'ad_banner'}))",
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'AdBanner'}))",
|
||||
:priority=>6,
|
||||
:active_for_app_auth => 'ad_banners',
|
||||
:available_for => [:admin]
|
||||
|
||||
+3
-3
@@ -28,7 +28,7 @@ module Archive
|
||||
side_bar do
|
||||
head_label_i18n 'miss_module_i18n.archive',:icon_class=>"icons-archive"
|
||||
available_for [:admin,:guest,:manager,:sub_manager]
|
||||
active_for_controllers ({:private=>['archive_file_categorys'],:public=>['panel/archive/back_end/tags']})
|
||||
active_for_controllers ({:private=>['archive_file_categorys','archive_files'],:public=>['panel/archive/back_end/tags']})
|
||||
active_for_object_auth ['BulletinCategory']
|
||||
|
||||
head_link_path "panel_archive_back_end_archive_files_path"
|
||||
@@ -36,13 +36,13 @@ module Archive
|
||||
context_link 'miss_module_i18n._archive.all',
|
||||
:link_path=>"panel_archive_back_end_archive_files_path" ,
|
||||
:priority=>1,
|
||||
:active_for_action=>{:archive_file=>:index},
|
||||
:active_for_action=>{:archive_files=>:index},
|
||||
:available_for => [:all]
|
||||
|
||||
context_link 'add',
|
||||
:link_path=>"new_panel_archive_back_end_archive_file_path" ,
|
||||
:priority=>2,
|
||||
:active_for_action=>{:archive_file=>:new},
|
||||
:active_for_action=>{:archive_files=>:new},
|
||||
:available_for => [:admin]
|
||||
|
||||
context_link 'categories',
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ module Gallery
|
||||
:available_for => [:manager]
|
||||
|
||||
context_link 'module_authorization',
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: 'gallery'}))",
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'Gallery'}))",
|
||||
:priority=>6,
|
||||
:active_for_app_auth => 'gallery',
|
||||
:available_for => [:admin]
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ module PageContent
|
||||
head_link_path "panel_page_content_back_end_page_contexts_path"
|
||||
|
||||
context_link 'module_authorization',
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: 'page_content'}))",
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'PageContent'}))",
|
||||
:priority=>1,
|
||||
:active_for_app_auth => 'PageContext',
|
||||
:available_for => [:admin]
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
<ul class="nav nav-pills hide">
|
||||
<li><%= link_to t(:edit), edit_panel_web_resource_back_end_web_link_category_path(web_link_category), :remote => true %></li>
|
||||
<li><%= link_to show_toggle_archive_btn(web_link_category), panel_web_resource_back_end_web_link_category_path(web_link_category), :confirm => t(:sure?), :method => :delete, :remote => true ,:class=> "archive_toggle"%></li>
|
||||
<li><%= show_web_link_permission_link web_link_category %></li>
|
||||
<li><%#= show_web_link_permission_link web_link_category %></li>
|
||||
</ul>
|
||||
</div>
|
||||
<% end -%>
|
||||
|
||||
+4
-4
@@ -36,19 +36,19 @@ module WebResource
|
||||
context_link 'list_',
|
||||
:link_path=>"panel_web_resource_back_end_web_links_path" ,
|
||||
:priority=>1,
|
||||
:active_for_action=>{:bulletins=>:index},
|
||||
:active_for_action=>{:web_links=>:index},
|
||||
:available_for => [:all]
|
||||
|
||||
context_link 'link',
|
||||
:link_path=>"new_panel_web_resource_back_end_web_link_path" ,
|
||||
:priority=>2,
|
||||
:active_for_action=>{:bulletins=>:new},
|
||||
:active_for_action=>{:web_links=>:new},
|
||||
:available_for => [:sub_manager]
|
||||
|
||||
context_link 'categories',
|
||||
:link_path=>"panel_web_resource_back_end_web_link_categorys_path" ,
|
||||
:priority=>3,
|
||||
:active_for_action=>{:bulletin_categorys=>:index},
|
||||
:active_for_action=>{:web_link_categorys=>:index},
|
||||
:available_for => [:manager]
|
||||
|
||||
context_link 'tags',
|
||||
@@ -58,7 +58,7 @@ module WebResource
|
||||
:available_for => [:manager]
|
||||
|
||||
context_link 'module_authorization',
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: 'web_resource'}))",
|
||||
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'WebResource'}))",
|
||||
:priority=>6,
|
||||
:active_for_app_auth => 'web_resource',
|
||||
:available_for => [:admin]
|
||||
|
||||
Reference in new issue
Block a user