From 26467b9137e3ccd2983baea07a4e420b1267d6c6 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 26 Sep 2016 10:02:54 +0200 Subject: backport: new customization strategy for the provider message We display a message for some providers like 'This is a demonstration provider. Accounts may be deleted at any time.' We used to do so by just customizing the entire home/content partial. This had the downside that changes to this partial would not be reflected on the customized providers. Instead we now have a separate partial for that purpose. --- app/views/home/_content.html.haml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'app/views/home/_content.html.haml') diff --git a/app/views/home/_content.html.haml b/app/views/home/_content.html.haml index d96a1e0..936e05d 100644 --- a/app/views/home/_content.html.haml +++ b/app/views/home/_content.html.haml @@ -5,8 +5,11 @@ .row-fluid = home_page_buttons - - if Rails.env == 'development' - .row-fluid - %hr - %p - = link_to "make donation", new_payment_path if APP_CONFIG[:payment].present? +.row-fluid + = render 'home/provider_message' + +- if Rails.env == 'development' + .row-fluid + %hr + %p + = link_to "make donation", new_payment_path if APP_CONFIG[:payment].present? -- cgit v1.2.3