Annotation of versionedFile/zpt/versionFileFolderMain.zpt, revision 1.9
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>
1.4 dwinter 8: <th align=left bgcolor="#88ff88">
9: <a href="?sortField=title"> File</a>
10: </th>
1.1 dwinter 11: <th align=left bgcolor="#cccccc">
1.4 dwinter 12: <a>Rev.</a>
1.1 dwinter 13: </th>
14: <th align=left bgcolor="#cccccc">
1.4 dwinter 15: <a href="?sortField=date">Date</a>
1.1 dwinter 16: </th>
17: <th align=left bgcolor="#cccccc">
1.4 dwinter 18: <a href="?sortField=author">Author</a>
1.1 dwinter 19: </th>
20: <th align=left bgcolor="#cccccc">
1.4 dwinter 21: <a >Last log entry</a>
1.1 dwinter 22: </th>
1.8 dwinter 23: <th align=left bgcolor="#cccccc" width="80">
1.9 ! dwinter 24: <a href="?sortField=comment">Comment</a>
1.7 dwinter 25: </th>
26: <th align=left bgcolor="#cccccc">
1.5 dwinter 27: <a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
1.1 dwinter 28: </th>
29: <th align=left bgcolor="#cccccc">
1.4 dwinter 30: <a>Downl. and lock</a>
1.1 dwinter 31: </th>
32: <th align=left bgcolor="#cccccc">
1.4 dwinter 33: <a>Upload</a>
1.1 dwinter 34: </th>
35: </tr>
1.4 dwinter 36: <span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','title')" tal:repeat="version python:here.getVersionedFiles(sortField=sortField)">
1.1 dwinter 37: <tr tal:define="lastVersion python:version[1].getLastVersion()">
38: <td tal:content="python:version[1].title"/>
39: <td>
40: <span tal:replace="lastVersion/versionNumber"/>
41: <font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>
42: </td>
1.6 dwinter 43: <td tal:content="lastVersion/getTime"/>
1.1 dwinter 44: <td tal:content="lastVersion/lastEditor"/>
45: <td tal:content="lastVersion/versionComment"/>
1.8 dwinter 46: <td><a tal:attributes="href python:version[1].absolute_url()+'/manageCommentForm'"><small tal:content="python:getattr(version[1],'comment','Add')"/></a></td>
1.5 dwinter 47: <td><a tal:attributes="href python:lastVersion.absolute_url()">download</a></td>
1.3 dwinter 48:
49: <td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/downloadLocked'">download and lock</a></td>
50: <td tal:condition="not:python:lastVersion.lockedBy==''"><a>locked</a></td>
1.1 dwinter 51:
52: <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 53: <td tal:condition="not:python:lastVersion.lockedBy==''">
54: <b tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addVersionedFileObjectForm'">Locked by: <span tal:replace="lastVersion/lockedBy"/></b> <a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/unlock'">unlock</a>
55: </td>
1.1 dwinter 56: </tr>
57: </span>
58: </table>
59: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>