summaryrefslogtreecommitdiff
path: root/templates/banners/donations.swig
diff options
context:
space:
mode:
authorakpu1 <akpu1@inventati.org>2016-06-18 07:11:40 +0200
committerGitHub <noreply@github.com>2016-06-18 07:11:40 +0200
commit3f696ed6f463d5182915ea5c2c59275da1df4654 (patch)
treefe2dd889b3df7f03c54c4c263cac716bb083c719 /templates/banners/donations.swig
parent7ac985d48ff9306498362b121244c2cc08647b5c (diff)
Made donation banner more general
Made language more general Replaced static links with vars Made showing button conditonal on having matching info
Diffstat (limited to 'templates/banners/donations.swig')
-rw-r--r--templates/banners/donations.swig23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/banners/donations.swig b/templates/banners/donations.swig
new file mode 100644
index 0000000..884f4ba
--- /dev/null
+++ b/templates/banners/donations.swig
@@ -0,0 +1,23 @@
+<p class="alert alert-info">
+ <strong>{{siteName}} is free to use, but our hosting costs are far from it</strong> &mdash; donations are what keep {{siteName}} alive, free, and fast.
+ <span class="donate-btns">
+ {% if paypalUrl != '' %}
+ <a class="donate-btn donate-paypal" href="{{paypalUrl}}" target="_BLANK">
+ <span class="icon icon-paypal"></span>
+ PayPal
+ </a>
+ {% endif %}
+ {% if bitcoinAddress != '' %}
+ <a class="donate-btn donate-bitcoin" href="bitcoin:{{bitcoinAddress}}?label={{siteName}}&amp;message=Hosting%20Costs" target="_BLANK">
+ <span class="icon icon-bitcoin"></span>
+ Bitcoin
+ </a>
+ {% endif %}
+ {% if flattrUrl != '' %}
+ <a class="donate-btn donate-flattr" href="{{flattrUrl}}" target="_BLANK">
+ <span class="icon icon-flattr"></span>
+ Flattr
+ </a>
+ {% endif %}
+ </span>
+</p>