This commit is contained in:
Andreas Stephanides
2015-01-15 15:20:19 +01:00
parent 70e34875f1
commit 565024c282
8 changed files with 224 additions and 6 deletions

View File

@@ -40,6 +40,9 @@
def get_theme
if params[:theme]== "default"
params[:theme]="blue1"
end
if ThemesForRails.available_theme_names.include?(params[:theme])
params[:theme]
@@ -48,6 +51,6 @@ else
end
end
def default_url_options
{locale: I18n.locale, theme: theme_name, ansicht: nil}
{locale: I18n.locale, theme: (theme_name=="blue1") ? "default" : theme_name , ansicht: nil}
end
end