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

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

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