Annotation of versionedFile/zpt/versionFileFolderMain.zpt, revision 1.5
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>
23: <th align=left bgcolor="#cccccc">
1.5 ! dwinter 24: <a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
1.1 dwinter 25: </th>
26: <th align=left bgcolor="#cccccc">
1.4 dwinter 27: <a>Downl. and lock</a>
1.1 dwinter 28: </th>
29: <th align=left bgcolor="#cccccc">
1.4 dwinter 30: <a>Upload</a>
1.1 dwinter 31: </th>
32: </tr>
1.4 dwinter 33: <span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','title')" tal:repeat="version python:here.getVersionedFiles(sortField=sortField)">
1.1 dwinter 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/bobobase_modification_time"/>
41: <td tal:content="lastVersion/lastEditor"/>
42: <td tal:content="lastVersion/versionComment"/>
1.5 ! dwinter 43: <td><a tal:attributes="href python:lastVersion.absolute_url()">download</a></td>
1.3 dwinter 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>
1.1 dwinter 47:
48: <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 49: <td tal:condition="not:python:lastVersion.lockedBy==''">
50: <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>
51: </td>
1.1 dwinter 52: </tr>
53: </span>
54: </table>
55: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>