Created
April 29, 2016 15:15
-
-
Save vangheem/d585773265205ee03569b85d9693698e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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