Annotation of basket/zpt/BasketFolder_template_standard.zpt, revision 1.10

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="">
1.7       dwinter    12: 
1.9       dwinter    13: <tal:block tal:define="authorized python:here.checkPermission('authorized') or
                     14:    options.get('mode', 'open') == 'open'; global listEmpty python:1">
1.1       dwinter    15: 
1.7       dwinter    16: <tal:block tal:condition="authorized">
1.9       dwinter    17:    <h3 tal:define="global mode python: options.get('mode', 'open')"><span 
                     18:        tal:condition="python: mode == 'private'"
1.4       dwinter    19:        tal:replace="python:'My '" /><span 
1.5       dwinter    20:        tal:condition="python: mode == 'open_intern'" 
1.4       dwinter    21:        tal:replace="python:'User '" /><span 
                     22:        tal:condition="python: mode == 'open'" 
                     23:        tal:replace="python:'Public '" />Sets
1.8       dwinter    24:    <span tal:condition="python:here.checkPermission('edit') and mode != 'open_intern'">
1.4       dwinter    25:        <a class="editLink" tal:attributes="
1.10    ! dwinter    26:            href python:'manageBasketFolder?mode=%s'%mode"> |&nbsp;Edit overview</a></span>
        !            27:    <span tal:condition="python:mode == 'private'">
        !            28:        <a class="editLink" tal:attributes="
        !            29:            href python:'manageBasketFolder?mode=%s'%mode"> |&nbsp;Edit overview</a>
        !            30:    </span>
        !            31:    </h3>
1.9       dwinter    32:    <p><span 
                     33:        tal:condition="python: mode == 'private'"
                     34:        tal:replace="structure python: 'This is a list of all your sets, including the sets of other users you have the permission to work on as an editor or administrator.'"/><span 
                     35:        tal:condition="python: mode == 'open_intern'" 
                     36:        tal:replace="structure python: 'Browse through the sets of other registered users. To include one of your sets you must change the access rights on its management page to <i>open_intern</i>.'"/><span 
                     37:        tal:condition="python: mode == 'open'" 
                     38:        tal:replace="structure python: 'These sets are thematic compilations of objects created by collaborators of the <i>Virtual Laboratory</i>.'"/>  </p><br>
                     39: 
                     40:    <tal:block tal:repeat="item python: here.getSets(mode=options.get('mode', 'open'))">
                     41:        <hr tal:define="global listEmpty python:0">
1.4       dwinter    42:        <a class="setTitle" tal:attributes="href item/absolute_url" tal:content="item/title"/>
1.9       dwinter    43:        <i class="small" tal:condition="python: 
                     44:            here.getActualUserName() != item.owner and mode == 'private'" tal:content="python:' [shared set]'" />
1.4       dwinter    45:        <div class="TOC" tal:content="structure item/shortDescription"/>
                     46:    </tal:block>
1.7       dwinter    47:    
1.9       dwinter    48:    <form tal:condition="python: listEmpty and mode == 'private'" action="setFolder/addBasket">
                     49:        There are no sets for your account.<br>Create a new set with title <input size="20" name="title"><input type="submit" value="add">
                     50:    </form>
                     51:    
1.7       dwinter    52: </tal:block>
                     53: 
                     54: <tal:block tal:condition="not: authorized">
1.9       dwinter    55: <h3>Private Page</h3>
                     56: 
                     57: <p>We are sorry, but only registered users may access this page,<br>
                     58: please <a href="users">log in</a> to view it.</p>
                     59: 
                     60: <p>Not yet registered? <a href="register.html">Sign up</a> for a free account.</p><br><br>
                     61: 
                     62: <p>You may find some thematic sets of objects compiled by collaborators <br>
                     63: of the <i>Virtual Laboratory</i> in the <a href="?mode=open">Public Sets</a> section.</p>
1.7       dwinter    64: </tal:block>
                     65: 
                     66: </tal:block>
1.1       dwinter    67:    
                     68: </span>
                     69: </body>
                     70: </html>

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