Remove bottom padding if no footer in mobile
Add a method in routes Copy mobile routes under the scope 'app' for app usage
This commit is contained in:
1 parent
91d1487a04
commit
4e2cbac027
3 files changed
+28
-19
No files matched your search
+13
-18
@@ -231,26 +231,21 @@ Orbit::Application.routes.draw do
|
||||
#match '/desktop_orbit/eventajaxload' => 'desktop_publications#delete_journal'
|
||||
# match '/desktop_orbit/eventajaxload' => 'desktop_publications#update_journal'
|
||||
|
||||
|
||||
scope '/front' do
|
||||
match 'show_banner/:id' => 'front#show_banner', :as => :front_show_banner
|
||||
match 'show_footer' => 'front#show_footer', :as => :front_show_footer
|
||||
match 'show_menu/:id' => 'front#show_menu', :as => :front_show_menu
|
||||
match 'show_page_sub_menu' => 'front#show_page_sub_menu', :as => :front_show_page_sub_menu
|
||||
match 'show_site_sub_menu' => 'front#show_site_sub_menu', :as => :front_show_site_sub_menu
|
||||
match 'show_sitemap' => 'front#show_sitemap', :as => :front_show_sitemap
|
||||
def controller_paths(controller, actions)
|
||||
actions.each do |action|
|
||||
if action.eql? 'index'
|
||||
match "#{controller}" => "#{controller}##{action}", :as => "#{controller}"
|
||||
else
|
||||
match "#{controller}/#{action}(/:id)" => "#{controller}##{action}", :as => "#{controller}_#{action}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
scope '/mobile' do
|
||||
match 'announcement' => 'mobile#announcement', :as => 'mobile_announcement'
|
||||
match 'announcement_content/:id' => 'mobile#announcement_content', :as => 'mobile_announcement_content'
|
||||
match 'dialog_contact' => 'mobile#dialog_contact', :as => 'mobile_dialog_contact'
|
||||
match 'dialog_copyright' => 'mobile#dialog_copyright', :as => 'mobile_dialog_copyright'
|
||||
match 'dialog_language' => 'mobile#dialog_language', :as => 'mobile_dialog_language'
|
||||
match 'map' => 'mobile#map', :as => 'mobile_map'
|
||||
match 'page' => 'mobile#page', :as => 'mobile_page'
|
||||
match 'page_content/:id' => 'mobile#page_content', :as => 'mobile_page_content'
|
||||
root :to => 'mobile#index', :as => 'mobile'
|
||||
controller_paths :front, %w[show_banner show_footer show_menu show_page_sub_menu show_site_sub_menu show_sitemap]
|
||||
controller_paths :mobile, %w[index announcement announcement_content dialog_contact dialog_copyright dialog_language map page page_content]
|
||||
|
||||
scope 'app' do
|
||||
controller_paths :mobile, %w[index announcement announcement_content dialog_contact dialog_copyright dialog_language map page page_content]
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user