add all app/package donation options to new Donate section

closes #193
closes #194
closes jekyll-fdroid#25

Litecoin icon is from:
https://commons.wikimedia.org/wiki/File:Official_Litecoin_Logo_With_Text.png

It was stripped of all EXIF using:
exiftool -all= assets/litecoin.png
parent 51612c1a
......@@ -52,6 +52,7 @@
"flattr_alt": "Donate via Flattr",
"liberapay_alt": "Donate via Liberapay",
"bitcoin_alt": "Donate via Bitcoin",
"litecoin_alt": "Donate via Litecoin",
"via_bank_transfer": "Bank Transfer",
"bank_transfer_name": "Name"
},
......
......@@ -66,28 +66,48 @@ layout: default-package-sidebar
<a href="{{ page.changelog }}">{{ strings.changelog }}</a>
</li>
{% endif %}
{% if page.donate != "" and page.donate != nil %}
<li class="package-link">
<a href="https://gitlab.com/fdroid/fdroiddata/tree/master/metadata/{{ page.package_name }}.txt">{{ strings.build_metadata }}</a>
</li>
<li class="package-link">
<a href="https://f-droid.org/wiki/page/{{page.package_name}}">{{ strings.technical_info }}</a>
</li>
</ul>
{% if page.liberapayID != nil or page.flattrID != nil or page.bitcoin != nil or page.litecoin != nil or page.donate != nil %}
<h3>{{ strings.donate }}</h3>
<ul class="package-links donate-options">
{% if page.liberapayID != "" and page.liberapayID != nil %}
<li class="package-link">
<a href="{{ page.donate }}">{{ strings.donate }}</a>
<a href="https://liberapay.com/~{{ page.liberapayID }}"><img src="{{ site.baseurl }}/assets/liberapay_donate_button.svg" alt="{{ strings.liberapay_alt }}"/></a>
</li>
{% endif %}
{% if page.flattrID != "" and page.flattrID != nil %}
<li class="package-link">
<a href="https://flattr.com/thing/{{ page.flattrID }}">{{ strings.flattr }}</a>
<a href="https://flattr.com/thing/{{ page.flattrID }}"><img src="{{ site.baseurl }}/assets/flattr-badge-large.png" alt="{{ strings.flattr_alt }}"/></a>
</li>
{% endif %}
{% if page.liberapayID != "" and page.liberapayID != nil %}
{% if page.bitcoin != "" and page.bitcoin != nil %}
<li class="package-link">
<a href="https://liberapay.com/~{{ page.liberapayID }}">{{ strings.liberapay }}</a>
<a href="https://live.blockcypher.com/btc/address/{{ page.bitcoin }}" title="{{ page.bitcoin }}" alt="{{ strings.bitcoin_alt }}"><img src="{{ site.baseurl }}/assets/bitcoin.png"/></a>
</li>
{% endif %}
{% if page.litecoin != "" and page.litecoin != nil %}
<li class="package-link">
<a href="https://live.blockcypher.com/ltc/address/{{ page.litecoin }}" title="{{ page.litecoin }}" alt="{{ strings.litecoin_alt }}"><img src="{{ site.baseurl }}/assets/litecoin.png"/></a>
</li>
{% endif %}
{% if page.donate != "" and page.donate != nil %}
<li class="package-link">
{% if page.donate contains "paypal.com" %}
<a href="{{ page.donate }}"><img src="{{ site.baseurl }}/assets/paypal_donate_button.gif" alt="{{ strings.paypal_alt }}"/></a>
{% else %}
<a href="{{ page.donate }}">{{ strings.donate }}: {{ page.donate }}</a>
{% endif %}
</li>
{% endif %}
<li class="package-link">
<a href="https://gitlab.com/fdroid/fdroiddata/tree/master/metadata/{{ page.package_name }}.txt">{{ strings.build_metadata }}</a>
</li>
<li class="package-link">
<a href="https://f-droid.org/wiki/page/{{page.package_name}}">{{ strings.technical_info }}</a>
</li>
</ul>
{% endif %}
{% if page.phone_screenshots %}
<div id="screenshots" class="js_slides screenshots">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment