Annotation of basket/zpt/BasketMain_template_standard.zpt, revision 1.4

1.1       dwinter     1: <html metal:use-macro="here/main_template/macros/page">
                      2: <head>
                      3: <title>Default</title>
1.3       dwinter     4: <style metal:fill-slot="additionalStyles" type="text/css">
                      5: td.vario { background-color:#AC1D15 }
                      6: </style>
1.1       dwinter     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 -->
1.4     ! dwinter    18:    <div class="logout" style="float:right">
        !            19:        <a href="/users/?logout">log out</a></div>
1.1       dwinter    20:    <div class="userName">logged in as <span tal:content="here/getActualUserName"/></div>
                     21:    
1.4     ! dwinter    22:    <!-- option box ?! -->
        !            23:    <div class="optionBox" tal:condition="python: here.checkPermission('edit')">        
        !            24:        <a class="editLink" href="selectThisBasketAsCurrent">Make this your active set.</a>
        !            25:    </div>
1.1       dwinter    26: 
1.4     ! dwinter    27:    <h2 class="setTitle"><span tal:replace="here/title"/>
        !            28:        <span tal:condition="python: here.checkPermission('edit')">
        !            29:            <a class="editLink" href="manageBasket">| Edit</a></span>
        !            30:    </h2>
1.1       dwinter    31:    
1.4     ! dwinter    32:    <div class="setDescription" 
        !            33:        tal:content="structure here/shortDescription">shortDescription</div><br>
        !            34:    <div class="setComment" 
        !            35:        tal:content="structure here/comment">Comment</div>
        !            36:    <hr>
1.1       dwinter    37:    
1.2       dwinter    38:    <tal:x tal:repeat="item here/getBasketObjects">
1.4     ! dwinter    39:     <div tal:condition="item/linkToObject">
        !            40:        <a tal:attributes="href item/linkToObject">
1.1       dwinter    41:        <div tal:replace="structure item/content_html"/></a>
                     42:     </div>
                     43:     <div tal:condition="not:item/linkToObject">
                     44:        <div tal:replace="structure item/content_html"/>
                     45:     </div>
                     46:     <br>
                     47:     <div tal:content="structure item/comment"/>
1.4     ! dwinter    48:     <hr>
        !            49:     </tal:x>
1.1       dwinter    50:    
                     51: </tal:block>
                     52: 
                     53: 
                     54: <!-- user is not logged in -->
                     55: <tal:block tal:condition="not: authorized">
                     56:    <h3>No access</h3>
1.4     ! dwinter    57:    <p>You are not authorized to access this page, please <a href="/users/">log in</a>.</p>
1.1       dwinter    58: </tal:block>
1.4     ! dwinter    59: 
1.1       dwinter    60: </tal:block>
1.4     ! dwinter    61: 
1.1       dwinter    62: </span>
                     63: <!-- ende bodytext -->
                     64: </body>
                     65: </html>

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