Annotation of basket/zpt/BasketMain_template_standard.zpt, revision 1.11
1.1 dwinter 1: <html metal:use-macro="here/main_template/macros/page">
2: <head>
1.11 ! casties 3: <meta http-equiv="content-type" content="text/html; charset=utf-8">
! 4: <title>Default</title>
! 5: <style metal:fill-slot="additionalStyles" type="text/css">
1.3 dwinter 6: td.vario { background-color:#AC1D15 }
1.11 ! casties 7: </style>
1.1 dwinter 8: </head>
9: <body>
10:
11: <!-- span = bodytext -->
12: <span metal:fill-slot="body" tal:omit-tag="">
1.9 dwinter 13: <tal:block tal:define="authorized python:1 or here.checkPermission('authorized')">
1.1 dwinter 14:
15: <!-- user is logged in -->
16: <tal:block tal:condition="authorized">
17:
1.4 dwinter 18: <!-- option box ?! -->
1.5 dwinter 19: <div class="optionBox"
20: tal:condition="python: here.checkPermission('edit')"
21: tal:define="global currentBasket here/getCurrentBasket">
22: <i tal:condition="python:
1.10 dwinter 23: currentBasket and (here.id == currentBasket.id)">This is the active set</i>
24: <a class="editLink"
25: tal:condition="not: python: currentBasket and (here.id == currentBasket.id)"
26: tal:attributes="
27: href python: 'selectThisBasketAsCurrent?target=/users/setFolder/' + here.id"
28: >Make this <br>your active set.</a>
1.4 dwinter 29: </div>
1.1 dwinter 30:
1.4 dwinter 31: <h2 class="setTitle"><span tal:replace="here/title"/>
32: <span tal:condition="python: here.checkPermission('edit')">
33: <a class="editLink" href="manageBasket">| Edit</a></span>
34: </h2>
1.1 dwinter 35:
1.4 dwinter 36: <div class="setDescription"
1.11 ! casties 37: tal:content="structure here/getShortDescription">shortDescription</div><br>
1.4 dwinter 38: <div class="setComment"
1.9 dwinter 39: tal:content="structure python: here.formatAscii(here.vlp.link2html(here.comment))">Comment</div>
1.6 dwinter 40: <br>
1.1 dwinter 41:
1.6 dwinter 42: <div class="seperator"> </div>
1.2 dwinter 43: <tal:x tal:repeat="item here/getBasketObjects">
1.10 dwinter 44: <div class="setItem" tal:condition="item/content_html"
45: tal:content="structure item/content_html"
46: />
47: <div class="setItemComment" tal:condition="item/comment"
48: tal:content="structure python:
49: here.formatAscii(here.vlp.link2html(item.comment))"
50: />
1.6 dwinter 51: <div class="seperator"> </div>
1.5 dwinter 52: </tal:x>
1.1 dwinter 53:
54: </tal:block>
55:
56:
57: <!-- user is not logged in -->
58: <tal:block tal:condition="not: authorized">
59: <h3>No access</h3>
1.4 dwinter 60: <p>You are not authorized to access this page, please <a href="/users/">log in</a>.</p>
1.1 dwinter 61: </tal:block>
1.4 dwinter 62:
1.1 dwinter 63: </tal:block>
1.4 dwinter 64:
1.1 dwinter 65: </span>
66: <!-- ende bodytext -->
67: </body>
68: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>