Annotation of externalVersionedFile/zpt/versionFileFolderMain.zpt, revision 1.1.1.1

1.1       dwinter     1: <html>
                      2:   <h2>Versioned File Folder - <span tal:content="here/title"/></h2>
                      3:   <span tal:replace="structure here/header_html"/>
                      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">
                      9:       <a href="?sortField=title"> File</a>
                     10:       </th>
                     11:       <th align=left bgcolor="#cccccc">
                     12:    <a>Rev.</a>
                     13:       </th>
                     14:       <th align=left bgcolor="#cccccc">
                     15:    <a href="?sortField=date">Date</a>
                     16:       </th>
                     17:       <th align=left bgcolor="#cccccc">
                     18:    <a href="?sortField=author">Author</a>
                     19:       </th>
                     20:       <th align=left bgcolor="#cccccc">
                     21:    <a >Last log entry</a>
                     22:       </th>
                     23:       <th align=left bgcolor="#cccccc">
                     24:    <a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
                     25:       </th>
                     26:       <th align=left bgcolor="#cccccc">
                     27:    <a>Downl. and lock</a>
                     28:       </th>
                     29:       <th align=left bgcolor="#cccccc">
                     30:    <a>Upload</a>
                     31:       </th>
                     32:     </tr>
                     33:     <span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','title')" tal:repeat="version python:here.getVersionedFiles(sortField=sortField)">
                     34:       <tr tal:define="lastVersion python:version[1].getLastVersion()">
                     35:    <td tal:content="python:version[1].title"/>
                     36:    <td>
                     37:    <span tal:replace="lastVersion/versionNumber"/>
                     38:    <font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>
                     39:    </td>
                     40:    <td tal:content="lastVersion/getTime"/>
                     41:    <td tal:content="lastVersion/lastEditor"/>
                     42:    <td tal:content="lastVersion/versionComment"/>
                     43:    <td><a tal:attributes="href python:lastVersion.absolute_url()">download</a></td>
                     44:    
                     45:    <td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/downloadLocked'">download and lock</a></td>
                     46:    <td tal:condition="not:python:lastVersion.lockedBy==''"><a>locked</a></td>
                     47:    
                     48:    <td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addExternalVersionedFileObjectForm'">Upload New Version</a></td>
                     49:    <td tal:condition="not:python:lastVersion.lockedBy==''">
                     50:      <b tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addExternalVersionedFileObjectForm'">Locked by: <span tal:replace="lastVersion/lockedBy"/></b>&nbsp;<a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/unlock'">unlock</a>
                     51:    </td>
                     52:       </tr>
                     53:     </span>
                     54:    </table>
                     55: </html>

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