File:  [Repository] / basket / zpt / BasketExternalLink_template_standard.zpt
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Wed Aug 15 15:49:03 2007 UTC (16 years, 9 months ago) by casties
Branches: MAIN
CVS tags: HEAD
simplified some methods and added getters for unicode in basket.py
changed templates to use unicode getters

<tal:block tal:condition="here/link">
	<tal:block tal:condition="python: here.link[0:7] == 'http://'" 
		tal:define="global type python:'Internal '">
		<tal:block tal:define="global type python:'External '" />
	</tal:block>
	<a tal:condition="here/linkText" 
		tal:content="structure python: 
			type + 'Link: <a href=' + here.link + '>' + here.getLinkText() + '</a>'"/>
	<a tal:condition="not: here/linkText" 
		tal:content="structure python: 
			type + 'Link: <a href=' + here.link + '>' + here.link + '</a>'"/>
</tal:block>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>