Skip to content

Commit bfa06c0

Browse files
authored
Fix Download images (#240)
1 parent 85cd716 commit bfa06c0

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

_i18n/en/general/download.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
loc="/assets/images/badges"
1111
file="get-it-on-google-play.png"
1212
width="170"
13+
islink = true
1314
%}
1415
{% endcapture %}
1516

@@ -23,6 +24,7 @@
2324
loc="/assets/images/badges"
2425
file="get-it-on-fdroid.png"
2526
width="170"
27+
islink = true
2628
%}
2729
{% endcapture %}
2830

@@ -31,7 +33,7 @@
3133
Official versions of AntennaPod are available on Google Play and F-Droid:
3234

3335
<!-- mdpo-disable-next-line -->
34-
[{{ img-GP | strip }}](https://play.google.com/store/apps/details?id=de.danoeh.antennapod) [{{ img-FD | strip }}](https://f-droid.org/packages/de.danoeh.antennapod/)
36+
<a href="https://play.google.com/store/apps/details?id=de.danoeh.antennapod" target="_blank">{{- img-GP | strip -}}</a> <a href="https://f-droid.org/packages/de.danoeh.antennapod" target="_blank">{{- img-FD | strip -}}</a>
3537

3638
AntennaPod is only officially published in above two app stores because we don't have the time to support more. All other stores listing AntennaPod copied the app without our explicit permission. We are not responsible for updating those or making sure they work correctly. The F-Droid repository is not maintained by us, but by the people behind F-Droid. F-Droid usually takes a few days until updates get available ([read more](/documentation/general/f-droid)). If an update is still not available more than a week after its release, feel free to let us know by creating a post on our [forum](https://forum.antennapod.org/)), and we'll investigate it.
3739

_includes/image.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
{%- endfor %}
1313

1414
{%- capture url %}
15-
{%- if native-exists == true %}
15+
{%- if include.file contains 'http' == true %}
16+
{{ include.file }}
17+
{%- elsif native-exists == true %}
1618
{{- native-url }}
1719
{%- elsif english-exists == true %}
1820
{{- english-url }}
@@ -21,11 +23,14 @@
2123
{%- endif %}
2224
{%- endcapture -%}
2325

24-
<a href="" data-toggle="modal" data-target="#imgModal{{ include.file | remove:'.' }}">
26+
{% unless include.islink == true %}<a data-toggle="modal" data-target="#imgModal{{ include.file | remove:'.' }}" style="cursor: pointer;">{% endunless %}
2527
<img src="{{ url }}" alt="{{ img-alt }}"
2628
{%- if include.width %} width="{{ include.width }}"{% endif %}
27-
{%- if include.max-width %} style="max-width:{{ include.max-width }};"{% endif %}
28-
class="rounded {{ include.class }}"></a>
29+
style="
30+
{%- if include.max-width %}max-width:{{ include.max-width }}; {% endif %}
31+
{%- if include.max-height %}max-height:{{ include.max-height }}; {% endif %}"
32+
class="rounded mt-2 {{ include.class }}">
33+
{% unless include.islink == true %}</a>
2934

3035
<div class="modal fade" id="imgModal{{ include.file | remove:'.' }}" tabindex="-1" role="dialog" aria-labelledby="imgModalLabel" aria-hidden="true">
3136
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
@@ -42,3 +47,4 @@
4247
</div>
4348
</div>
4449
</div>
50+
{%- endunless %}

0 commit comments

Comments
 (0)