forked from bofh/fetsite
diverse fixed
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
module ApplicationHelper
|
||||
def current_url(overwrite={})
|
||||
url_for :params => params.merge(overwrite).except(:controller,:action)
|
||||
end
|
||||
def current_url1(overwrite={})
|
||||
url_for :params => params.merge(overwrite).except(:controller,:action,:ansicht)
|
||||
end
|
||||
|
||||
|
||||
def switch_locale_url(target_locale)
|
||||
current_url({:locale=>target_locale}) .sub "/"+I18n.locale.to_s+"/", "/"+target_locale.to_s+"/"
|
||||
current_url1({:locale=>target_locale}) .sub "/"+I18n.locale.to_s+"/", "/"+target_locale.to_s+"/"
|
||||
|
||||
end
|
||||
def toolbar_html(elemente)
|
||||
|
||||
Reference in New Issue
Block a user