Merge branch 'master' of github.com:fetsite/fetsite

Conflicts:
	app/controllers/application_controller.rb
This commit is contained in:
Andreas Stephanides
2015-03-09 17:40:52 +01:00
3 changed files with 12 additions and 9 deletions

View File

@@ -40,15 +40,18 @@
def get_theme
if params[:theme]== "default" || params[:theme]=="2003" || params[:theme].nil?
params[:theme]="blue1"
end
if ThemesForRails.available_theme_names.include?(params[:theme])
params[:theme]
# if params[:theme]== "default" || params[:theme]=="2003" || params[:theme].nil?
# params[:theme]="blue1"
# end
# if ThemesForRails.available_theme_names.include?(params[:theme])
# params[:theme]
else
#else
"blue1"
end
#end
end
def default_url_options
{locale: I18n.locale, theme: (theme_name=="blue1") ? nil : theme_name , ansicht: nil}