{{if type=='img':}} {{=IMG(_src=file and URL(r=request, c='default',f='download',args=file) or URL('static','images','dummy.png'))}} {{else:}} {{=IMG(_src=URL('static','images','dummy.png'))}} {{pass}}