Changeset 2342 for WAeUP_SRP/base/skins
- Timestamp:
- 10 Oct 2007, 15:43:43 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/cps_custom/widget_image_render.pt
r2332 r2342 1 1 <tal:block define="mode options/mode; 2 id here/getWidgetId;3 fields here/fields;4 current_filename options/current_filename;5 empty_file options/empty_file;6 session_file options/session_file;7 mimetype options/mimetype;8 size options/size;9 content_url options/content_url;10 last_modified options/last_modified;11 content_url_nocache string:${content_url}?nocache=${last_modified};12 image_width options/width;13 image_height options/height;14 image_tag options/image_tag;15 ">16 <span tal:condition="python:0">17 < img tal:condition="python: mode == 'view' and not empty_file"18 tal:replace="structure image_tag" />19 </span>20 <span tal:condition="python: mode == 'view' and not empty_file">21 <a href="" target="_new"22 tal:attributes="href content_url"23 tal:content="current_filename" >24 </a>25 </span>26 2 id here/getWidgetId; 3 fields here/fields; 4 current_filename options/current_filename; 5 empty_file options/empty_file; 6 session_file options/session_file; 7 mimetype options/mimetype; 8 size options/size; 9 content_url options/content_url; 10 last_modified options/last_modified; 11 content_url_nocache string:${content_url}?nocache=${last_modified}; 12 image_width options/width; 13 image_height options/height; 14 image_tag options/image_tag; 15 show_image options/show_image|nothing;" 16 > 17 <span tal:condition="python: mode == 'view' and not empty_file" tal:omit-tag=""> 18 <img tal:condition="python: show_image" 19 tal:replace="structure image_tag" /> 20 <span tal:condition="python: not show_image" tal:omit-tag=""> 21 <a href="" target="_new" 22 tal:attributes="href content_url" 23 tal:content="current_filename" > 24 </a> 25 </span> 26 </span> 27 27 <tal:block condition="python: mode == 'edit'"> 28 28
Note: See TracChangeset for help on using the changeset viewer.