suite
This commit is contained in:
parent
6e72711795
commit
95f5686b1c
@ -13,7 +13,7 @@ module MenuItemsHelper
|
|||||||
end
|
end
|
||||||
name = menu_item_lang.name
|
name = menu_item_lang.name
|
||||||
if menu_item_lang.enabled == true and menu_item_lang.visible == true
|
if menu_item_lang.enabled == true and menu_item_lang.visible == true
|
||||||
link_to name, menu_item_path(:url => menu_item_lang.url, :lang => @lang.slug), :class => ("active" if active)
|
link_to name, menu_item_path(:url => menu_item_lang.url), :class => ("active" if active)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ module MenuItemsHelper
|
|||||||
|
|
||||||
name = menu_item_lang.name+("" if sym and @menu_item and @menu_item == menu_item ).to_s
|
name = menu_item_lang.name+("" if sym and @menu_item and @menu_item == menu_item ).to_s
|
||||||
if menu_item_lang.enabled == true and menu_item_lang.visible == true
|
if menu_item_lang.enabled == true and menu_item_lang.visible == true
|
||||||
menu_item_path(:url => menu_item_lang.url, :lang => @lang.slug)
|
menu_item_path(:url => menu_item_lang.url)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -304,8 +304,8 @@ Rails.application.routes.draw do
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
get ':lang/*url.html' => 'public/menu_items#show', :as => :menu_item, :f => "html"
|
get '*url.html' => 'public/menu_items#show', :as => :menu_item, :f => "html"
|
||||||
get ':lang/*url.:f' => 'public/menu_items#redirect', :f => "html"
|
get '*url.:f' => 'public/menu_items#redirect', :f => "html"
|
||||||
|
|
||||||
|
|
||||||
root 'public/menu_items#show'
|
root 'public/menu_items#show'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user