Use asset fingerprinter to serve images

This means we can cache them forever, and only invalidate the cache
when the image changes.
This commit is contained in:
Chris Hill-Scott
2018-11-29 14:28:29 +00:00
parent 5bf6bdcd20
commit 643dca0071
5 changed files with 15 additions and 16 deletions

View File

@@ -26,7 +26,7 @@
{% for option in form.options %}
<div class="column-one-quarter">
<label for="{{ option.id }}">
<img src="{{ asset_path }}images/branding-options/{{ option.data }}.png" alt="" class="bordered-image bottom-gutter-1-3">
<img src="{{ asset_url('images/branding-options/{}.png'.format(option.data)) }}" alt="" class="bordered-image bottom-gutter-1-3">
</label>
{{ radio(option) }}
</div>