diff options
| author | Eliot Whalan <ewhal@pantsu.cat> | 2016-06-18 07:18:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-18 07:18:47 +0200 |
| commit | e199b9f914d57724c9a08ca3749a08a7aad46256 (patch) | |
| tree | 36c3ac2147220d64f28c37dfc45542823cc6e3bf /templates | |
| parent | 74064dbfe4dd1a05a145d33b51d02e0bc7f1f23e (diff) | |
| parent | d8f3db5cb0c665a66ddc5ae7f0af2ec37c2dd0b5 (diff) | |
Merge pull request #14 from akpu1/patch-10
Generalised donation banner significantly more general; other misc changes
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/banners.json | 4 | ||||
| -rw-r--r-- | templates/banners/donate.swig | 17 | ||||
| -rw-r--r-- | templates/banners/donations.swig | 23 |
3 files changed, 23 insertions, 21 deletions
diff --git a/templates/banners.json b/templates/banners.json deleted file mode 100644 index 6cefb70..0000000 --- a/templates/banners.json +++ /dev/null @@ -1,4 +0,0 @@ -[ - "banners/malware_scans.swig", - "banners/donate.swig" -] diff --git a/templates/banners/donate.swig b/templates/banners/donate.swig deleted file mode 100644 index dcd7f7c..0000000 --- a/templates/banners/donate.swig +++ /dev/null @@ -1,17 +0,0 @@ -<p class="alert alert-info"> - <strong>pomf.se is a free service, but our hosting bill isn't</strong> — we need almost $100 a month for that. Donations help keep pomf.se free, online, and fast. Everything (after fees) goes to the hosting bill. - <span class="donate-btns"> - <a class="donate-btn donate-paypal" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BHUVEZY96YZ6N" target="_BLANK"> - <span class="icon icon-paypal"></span> - PayPal - </a> - <a class="donate-btn donate-bitcoin" href="bitcoin:1CrbCGSTFM5ccmjFoU4jRSQod44Ttu8nHY?label=pomf.se&message=Hosting%20Bills" target="_BLANK"> - <span class="icon icon-bitcoin"></span> - Bitcoin - </a> - <a class="donate-btn donate-flattr" href="https://flattr.com/submit/auto?user_id=neku&url=http://pomf.se" target="_BLANK"> - <span class="icon icon-flattr"></span> - Flattr - </a> - </span> -</p> 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> — 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}}&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> |
