mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-17 11:41:11 +00:00
Separated out html code for displaying an image in another file
This commit is contained in:
parent
9e5ba4bd3e
commit
43ac882e5d
2 changed files with 5 additions and 1 deletions
|
|
@ -19,7 +19,7 @@
|
|||
{% for image in images %}
|
||||
<li>
|
||||
<a class="image-choice" href="{% url 'wagtailimages:edit' image.id %}">
|
||||
<div class="image">{% image image max-165x165 class="show-transparency" %}</div>
|
||||
{% include "wagtailimages/images/results_image.html" %}
|
||||
<h3>{{ image.title|ellipsistrim:60 }}</h3>
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
{% load wagtailimages_tags wagtailadmin_tags %}
|
||||
{% load i18n %}
|
||||
|
||||
<div class="image">{% image image max-165x165 class="show-transparency" %}</div>
|
||||
Loading…
Reference in a new issue