src/pyams_file/widget/templates/image-display.pt
changeset 23 3dbc8df88f2d
parent 9 4c1ae5583036
child 50 3b2cb5046d86
equal deleted inserted replaced
22:3a1769d9a4e2 23:3dbc8df88f2d
    20 			<span tal:content="python:'%d x %d' % value.get_image_size()"></span>
    20 			<span tal:content="python:'%d x %d' % value.get_image_size()"></span>
    21 			&nbsp;&ndash;&nbsp;
    21 			&nbsp;&ndash;&nbsp;
    22 			<i18n:var i18n:translate=""><span i18n:name="size" tal:content="python:round(value.get_size() / 1024)"></span> Kb</i18n:var>
    22 			<i18n:var i18n:translate=""><span i18n:name="size" tal:content="python:round(value.get_size() / 1024)"></span> Kb</i18n:var>
    23 			<br />
    23 			<br />
    24 			<a class="btn btn-xs btn-default" target="download_window"
    24 			<a class="btn btn-xs btn-default" target="download_window"
    25 			   tal:attributes="href extension:absolute_url(value)" i18n:translate="">
    25 			   tal:define="href extension:absolute_url(value)"
       
    26 			   tal:attributes="href string:${href}?download=1"
       
    27 			   i18n:translate="">
    26 				Download
    28 				Download
    27 			</a>
    29 			</a>
    28 		</div>
    30 		</div>
    29 	</div>
    31 	</div>
    30 </i18n:block>
    32 </i18n:block>