1: <html metal:use-macro="here/main_template/macros/page">
2: <head>
3: <title>Default</title>
4: <style metal:fill-slot="additionalStyles" type="text/css">
5: td.vario { background-color:#AC1D15 }
6: </style>
7: </head>
8: <body>
9:
10: <!-- span = bodytext -->
11: <span metal:fill-slot="body" tal:omit-tag="">
12: <tal:block tal:define="authorized python:here.isAuthorized()">
13:
14: <!-- user is logged in -->
15: <tal:block tal:condition="authorized">
16:
17: <!-- log in message -->
18: <div class="logout" style="float:right"><a href="/users/login.html?logout">log out</a></div>
19: <div class="userName">logged in as <span tal:content="here/getActualUserName"/></div>
20:
21: <!-- id selected: manage set -->
22: <tal:block tal:condition="python:here.checkPermission('admin')">
23: <a href="manageBasket">Manage this set</a>
24:
25: <h1 tal:content="here/title">Title</h1>
26:
27: <div class="comment_basket" tal:content="structure here/comment">Comment</div>
28:
29: <tal:x tal:repeat="item here/getBasketObjects">
30: <div tal:condition="item/linkToObject"><a tal:attributes="href item/linkToObject">
31: <div tal:replace="structure item/content_html"/></a>
32: </div>
33: <div tal:condition="not:item/linkToObject">
34: <div tal:replace="structure item/content_html"/>
35: </div>
36: <br>
37: <div tal:content="structure item/comment"/>
38:
39: </tal:x>
40:
41:
42: </tal:block>
43:
44:
45: <!-- user is not logged in -->
46: <tal:block tal:condition="not: authorized">
47: <h3>No access</h3>
48: <p>You sre not authorized to access this page, please <a href="/users/login.html">log in</a>.</p>
49: </tal:block>
50: </tal:block>
51: </tal:block>
52: </span>
53: <!-- ende bodytext -->
54: </body>
55: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>