Skip to content

Instantly share code, notes, and snippets.

@isouzasoares
Created May 21, 2014 18:27
Show Gist options
  • Save isouzasoares/d3bb605a1763e792cc81 to your computer and use it in GitHub Desktop.
Save isouzasoares/d3bb605a1763e792cc81 to your computer and use it in GitHub Desktop.
<span class="image" tal:define="req python: here.request">
<img tal:attributes="data-original feature/image; alt python: mkAltTitle(feature['title'], feature.get('credits')); title python: mkAltTitle(feature['title'], feature.get('credits'))" tal:condition="python:not req.get('diagramar')">
<noscript tal:omit-tag="python:req.get('diagramar')">
<img tal:attributes="src feature/image; alt python: mkAltTitle(feature['title'], feature.get('credits')); title python: mkAltTitle(feature['title'], feature.get('credits'))">
</noscript>
</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment