File:  [Repository] / basket / zpt / BasketMain_template_standard.zpt
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sun Mar 19 03:26:56 2006 UTC (18 years, 2 months ago) by dwinter
Branches: MAIN
CVS tags: HEAD
minor

<html metal:use-macro="here/main_template/macros/page">
<head>
<title>Default</title>
</head>
<body>

<!-- span = bodytext -->
<span metal:fill-slot="body" tal:omit-tag="">
<tal:block tal:define="authorized python:here.isAuthorized()">

<!-- user is logged in -->
<tal:block tal:condition="authorized">

	<!-- log in message -->
	<div class="logout" style="float:right"><a href="/users/login.html?logout">log out</a></div>
	<div class="userName">logged in as <span tal:content="here/getActualUserName"/></div>
	
	<!-- id selected: manage set -->
	<tal:block tal:condition="python:here.checkPermission('admin')">
	<a href="manageBasket">Manage this set</a>

	<h1 tal:content="here/title">Title</h1>
	
	<div class="comment_basket" tal:content="structure here/comment">Comment</div>
	
	<tal:x tal:repeat="item here/getBasketObjects">
	 <div tal:condition="item/linkToObject"><a tal:attributes="href item/linkToObject">
	 	<div tal:replace="structure item/content_html"/></a>
	 </div>
	 <div tal:condition="not:item/linkToObject">
	 	<div tal:replace="structure item/content_html"/>
	 </div>
	 <br>
	 <div tal:content="structure item/comment"/>
    
	</tal:x>
	
	
</tal:block>


<!-- user is not logged in -->
<tal:block tal:condition="not: authorized">
	<h3>No access</h3>
	<p>You sre not authorized to access this page, please <a href="/users/login.html">log in</a>.</p>
</tal:block>
</tal:block>
</tal:block>
</span>
<!-- ende bodytext -->
</body>
</html>

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