show thumbnails for installable themes [fix #40]

This commit is contained in:
Gert
2015-04-24 12:17:17 +02:00
parent a2badcbfe8
commit bfb0dc64dc

View File

@@ -20,7 +20,8 @@
<span class="gpm-version">v{{ theme.version }}</span>
</div>
<div class="gpm-screenshot">
<a href="{{ base_url_relative }}/themes/{{ slug|url_encode }}"><img src="{{ theme.thumbnail }}" /></a>
{% set thumb = installing ? 'http://getgrav.org/images/' ~ theme.screenshot : theme.thumbnail %}
<a href="{{ base_url_relative }}/themes/{{ slug|url_encode }}"><img src="{{ thumb }}" /></a>
</div>
{% if (installing) %}
<div class="gpm-actions">