Annotation of versionedFile/zpt/versionFileFolderMain.zpt, revision 1.3

1.1       dwinter     1: <html>
                      2:   <h2>Versioned File Folder - <span tal:content="here/title"/></h2>
1.2       dwinter     3:   <span tal:replace="structure here/header_html"/>
1.1       dwinter     4:   <p><a target="_blank" tal:attributes="href python:here.REQUEST['URL1']+'/acl_users/manage_main'">add a new User</a></p>
                      5:   <p><a tal:attributes="href python:here.REQUEST['URL1']+'/addFileForm'">add a new File</a></p>
                      6:   <table  width="100%" border=0 cellspacing=1 cellpadding=2>
                      7:     <tr>
                      8:       <th align=left bgcolor="#88ff88">File</th>
                      9:       <th align=left bgcolor="#cccccc">
                     10:    <a href="">Rev.</a>
                     11:       </th>
                     12:       <th align=left bgcolor="#cccccc">
                     13:    <a href="">Date</a>
                     14:       </th>
                     15:       <th align=left bgcolor="#cccccc">
                     16:    <a href="">Author</a>
                     17:       </th>
                     18:       <th align=left bgcolor="#cccccc">
                     19:    <a href="">Last log entry</a>
                     20:       </th>
                     21:       <th align=left bgcolor="#cccccc">
                     22:    <a href="">Download</a>
                     23:       </th>
                     24:       <th align=left bgcolor="#cccccc">
                     25:    <a href="">Downl. and lock</a>
                     26:       </th>
                     27:       <th align=left bgcolor="#cccccc">
                     28:    <a href="">Upload</a>
                     29:       </th>
                     30:     </tr>
                     31:     <span tal:omit-tag="" tal:repeat="version here/getVersionedFiles">
                     32:       <tr tal:define="lastVersion python:version[1].getLastVersion()">
                     33:    <td tal:content="python:version[1].title"/>
                     34:    <td>
                     35:    <span tal:replace="lastVersion/versionNumber"/>
                     36:    <font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>
                     37:    </td>
                     38:    <td tal:content="lastVersion/bobobase_modification_time"/>
                     39:    <td tal:content="lastVersion/lastEditor"/>
                     40:    <td tal:content="lastVersion/versionComment"/>
1.3     ! dwinter    41:    <td><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/'+lastVersion.getId()+'/download'">download</a></td>
        !            42:    
        !            43:    <td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/downloadLocked'">download and lock</a></td>
        !            44:    <td tal:condition="not:python:lastVersion.lockedBy==''"><a>locked</a></td>
1.1       dwinter    45:    
                     46:    <td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addVersionedFileObjectForm'">Upload New Version</a></td>
1.3     ! dwinter    47:    <td tal:condition="not:python:lastVersion.lockedBy==''">
        !            48:      <b tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addVersionedFileObjectForm'">Locked by: <span tal:replace="lastVersion/lockedBy"/></b>&nbsp;<a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/unlock'">unlock</a>
        !            49:    </td>
1.1       dwinter    50:       </tr>
                     51:     </span>
                     52:    </table>
                     53: </html>

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