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: <!-- option box ?! -->
18: <div class="optionBox"
19: tal:condition="python: here.checkPermission('edit')"
20: tal:define="global currentBasket here/getCurrentBasket">
21: <i tal:condition="python:
22: currentBasket and (here.title == currentBasket.title)">This is the active set</i>
23: <a class="editLink" tal:condition="not: python:
24: currentBasket and (here.title == currentBasket.title)"
25: href="selectThisBasketAsCurrent">Make this your active set.</a>
26: </div>
27:
28: <h2 class="setTitle"><span tal:replace="here/title"/>
29: <span tal:condition="python: here.checkPermission('edit')">
30: <a class="editLink" href="manageBasket">| Edit</a></span>
31: </h2>
32:
33: <div class="setDescription"
34: tal:content="structure here/shortDescription">shortDescription</div><br>
35: <div class="setComment"
36: tal:content="structure here/comment">Comment</div>
37: <br>
38:
39: <div class="seperator"> </div>
40: <tal:x tal:repeat="item here/getBasketObjects">
41: <div tal:condition="item/content_html" tal:content="structure item/content_html"
42: class="setItem"/>
43: <div tal:condition="item/comment" tal:content="structure item/comment"
44: class="setItemComment"/>
45: <div class="seperator"> </div>
46: </tal:x>
47:
48: </tal:block>
49:
50:
51: <!-- user is not logged in -->
52: <tal:block tal:condition="not: authorized">
53: <h3>No access</h3>
54: <p>You are not authorized to access this page, please <a href="/users/">log in</a>.</p>
55: </tal:block>
56:
57: </tal:block>
58:
59: </span>
60: <!-- ende bodytext -->
61: </body>
62: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>