Skip to content

Instantly share code, notes, and snippets.

@vangheem
Created April 29, 2016 15:15
Show Gist options
  • Save vangheem/d585773265205ee03569b85d9693698e to your computer and use it in GitHub Desktop.
Save vangheem/d585773265205ee03569b85d9693698e to your computer and use it in GitHub Desktop.
<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