Diff for /basket/zpt/BasketFolder_template_standard.zpt between versions 1.4 and 1.11

version 1.4, 2006/04/03 17:46:43 version 1.11, 2006/04/18 09:48:27
Line 9  td.vario { background-color:#AC1D15 } Line 9  td.vario { background-color:#AC1D15 }
   
 <!-- span = bodytext -->  <!-- span = bodytext -->
 <span metal:fill-slot="body" tal:omit-tag="">  <span metal:fill-slot="body" tal:omit-tag="">
 <tal:block tal:define="authorized python:here.isAuthorized()">  
   
 <!-- user is logged in -->  <tal:block tal:define="authorized python:here.checkPermission('authorized') or
     <!-- log in message -->      options.get('mode', 'open') == 'open'; global listEmpty python:1">
     <div class="logout" style="float:right"><a href="/users/login.html?logout">log out</a></div>  
     <div class="userName">logged in as <span tal:content="here/getActualUserName"/></div>  
           
     <!-- id selected: manage set -->  <tal:block tal:condition="authorized">
           <h3 tal:define="global mode python: options.get('mode', 'open')"><span 
       
 </tal:block>  
     <h2 tal:define="mode python: options.get('mode', None)"><span   
         tal:condition="python: mode == 'private'"           tal:condition="python: mode == 'private'" 
         tal:replace="python:'My '" /><span           tal:replace="python:'My '" /><span 
         tal:condition="python: mode == 'open_internal'"           tal:condition="python: mode == 'open_intern'" 
         tal:replace="python:'User '" /><span           tal:replace="python:'User '" /><span 
         tal:condition="python: mode == 'open'"           tal:condition="python: mode == 'open'" 
         tal:replace="python:'Public '" />Sets          tal:replace="python:'Public '" />Sets
     <span tal:condition="python:here.isAuthorized('edit') and mode != 'open_internal'">          <!-- ??
           <span tal:condition="python:here.checkPermission('edit') and mode != 'open_intern'">
         <a class="editLink" tal:attributes="          <a class="editLink" tal:attributes="
             href python:'manageBasketFolder?mode=%s'%mode"> | Edit overview</a></span></h2>                  href python:'manageBasketFolder?mode=%s'%mode"> |&nbsp;Edit overview</a></span>-->
               <span tal:condition="python:mode == 'private'">
     <tal:block tal:repeat="item python:here.getSets(mode=options.get('mode', None))">              <a class="editLink" tal:attributes="
         <hr>                  href python:'manageBasketFolder?mode=%s'%mode"> |&nbsp;Manage your sets</a>
         <a class="setTitle" tal:attributes="href item/absolute_url" tal:content="item/title"/>          </span>
       </h3>
       <!-- introduction -->
       <p><span 
           tal:condition="python: mode == 'private'"
           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 
           tal:condition="python: mode == 'open_intern'" 
           tal:replace="structure python: 
               'Browse through the sets of other registered users. To include one of ' +
               'your sets you have to change the access rights on its management page to ' +
               '<i>open_intern</i>.'"/><span 
           tal:condition="python: mode == 'open'" 
           tal:replace="structure python: 
               'These sets are thematic compilations of objects created by collaborators ' +
               'of the <i>Virtual Laboratory</i>.'"/></p><br>
               
       <!-- list of sets -->
       <tal:block tal:repeat="item python: here.getSets(mode=options.get('mode', 'open'))">
           <hr tal:define="
               global listEmpty python:0; 
               global currentBasket python: here.getCurrentBasket();
               global isActive python: currentBasket and currentBasket.id == item.id">
           <a class="editLink" style="float:right" 
               tal:condition="python: not isActive and mode == 'private'"
               tal:attributes="href python:'/users/setFolder/' + item.id + 
                   '/selectThisBasketAsCurrent?target=/users/setFolder%3Fmode=' + mode">select</a>
           <i style="float:right" 
               tal:condition="isActive">- active set -</i>
               
           <a class="setTitleLink" tal:attributes="href item/absolute_url" tal:content="item/title"/>
           <i class="small" 
               tal:condition="python: 
                   mode == 'private' and here.getActualUserName() != item.owner" 
               tal:content="python:
                   ' [shared set, created by ' + item.owner + ']'" 
           /><i class="small" 
               tal:condition="python: mode == 'open_intern' and item.owner != here.getActualUserName()" 
               tal:content="python:
                   ' [created by ' + item.owner + ']'" 
           /><i class="small" 
               tal:condition="python: mode == 'open_intern' and item.owner == here.getActualUserName()" 
               tal:content="python:
                   ' [your set]'" />
         <div class="TOC" tal:content="structure item/shortDescription"/>          <div class="TOC" tal:content="structure item/shortDescription"/>
       </tal:block>
       
       <form action="setFolder/addBasket" 
           tal:condition="python: listEmpty and mode == 'private'">
       <!-- no sets available -->
               There are no sets for your account.<br>
               Create a new set with title <input size="20" name="title">
               <input type="submit" value="add">
       </form>
       
   </tal:block>
   
   <tal:block tal:condition="not: authorized">
   <h3>Private Page</h3>
   
   <p>We are sorry, but only registered users may access this page,<br>
   please <a href="users">log in</a> to view it.</p>
   
   <p>Not yet registered? <a href="register.html">Sign up</a> for a free account.</p>
   <br><br>
   
   <p>You may find some thematic sets of objects compiled by collaborators <br>
   of the <i>Virtual Laboratory</i> in the <a href="?mode=open">Public Sets</a> section.</p>
   </tal:block>
           
     </tal:block>      </tal:block>
           

Removed from v.1.4  
changed lines
  Added in v.1.11


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