Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<tal:container tal:define="image python: view.get_image()">
<div class="image-tile-container" tal:define="caption view/data/caption|nothing">
<p class="image" tal:condition="nocall: image">
<img src="${image/absolute_url}/@@images/image/${view/data/scale|large}" alt="${image/Title}" />
<p class="description" tal:condition="caption">${caption}</p>
</p>
<p tal:condition="python: not image">
No image specified
</p>
</div>
</tal:container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment