diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index cbcdf9f2..07fd4187 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -226,6 +226,12 @@ module ApplicationHelper end end + # Expand variables in text + # @see Foodsoft::ExpansionVariables#expand + def expand(text, options={}) + Foodsoft::ExpansionVariables.expand(text, options) + end + # @return [String] path to foodcoop CSS style (with MD5 parameter for caching) def foodcoop_css_path(options={}) super(options.merge({md5: Digest::MD5.hexdigest(FoodsoftConfig[:custom_css].to_s)})) diff --git a/app/views/layouts/_footer.html.haml b/app/views/layouts/_footer.html.haml index a9e3dfaf..4ae8eaf1 100644 --- a/app/views/layouts/_footer.html.haml +++ b/app/views/layouts/_footer.html.haml @@ -10,4 +10,4 @@ - if (s = FoodsoftConfig[:page_footer]).blank? = link_to FoodsoftConfig[:name], FoodsoftConfig[:homepage] - else - = raw s + = raw expand s