summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-09-26 10:02:54 +0200
committerAzul <azul@riseup.net>2016-09-26 10:03:20 +0200
commit26467b9137e3ccd2983baea07a4e420b1267d6c6 (patch)
tree33b5f9a3a9cb6a8e5ff98b48349e4fb414bd2723 /app/views
parentc6c4d9fd10b8ca8e24889112727e44c9bf68dd60 (diff)
backport: new customization strategy for the provider messageversion/0.8
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.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/home/_content.html.haml13
-rw-r--r--app/views/home/_provider_message.html.haml2
2 files changed, 10 insertions, 5 deletions
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?
diff --git a/app/views/home/_provider_message.html.haml b/app/views/home/_provider_message.html.haml
new file mode 100644
index 0000000..928215a
--- /dev/null
+++ b/app/views/home/_provider_message.html.haml
@@ -0,0 +1,2 @@
+-# please overwrite me in your customization files at
+-# config/customization/views/home/_provider_message.html.haml