src/pyams_default_theme/component/paragraph/templates/html-default.pt
changeset 123 9638eaef9d34
parent 119 d87742a2d404
child 163 de718ccf8bcc
equal deleted inserted replaced
122:d83485dee19a 123:9638eaef9d34
     1 <h3 tal:content="view.title">title</h3>
     1 <tal:var define="renderer view.illustration_renderer;
     2 <tal:var content="structure view.render_illustration()">Illustration</tal:var>
     2 				 position renderer.position if renderer is not None else None;"
     3 <div tal:content="structure tales:html(view.body, 'oid_to_href')">body</div>
     3 		 switch="position">
       
     4 	<tal:var case="'before-title'">${structure:view.render_illustration()}</tal:var>
       
     5 	<h2 tal:condition="position != 'before-title'">${view.title}</h2>
       
     6 	<tal:var case="'before-body'">${structure:view.render_illustration()}</tal:var>
       
     7 	<div>${structure:tales:html(view.body, 'oid_to_href')}</div>
       
     8 	<tal:var case="'after-body'">${structure:view.render_illustration()}</tal:var>
       
     9 </tal:var>