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" width="80">
24: <a >Comment</a>
25: </th>
26: <th align=left bgcolor="#cccccc">
27: <a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
28: </th>
29: <th align=left bgcolor="#cccccc">
30: <a>Downl. and lock</a>
31: </th>
32: <th align=left bgcolor="#cccccc">
33: <a>Upload</a>
34: </th>
35: </tr>
36: <span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','title')" tal:repeat="version python:here.getVersionedFiles(sortField=sortField)">
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>
43: <td tal:content="lastVersion/getTime"/>
44: <td tal:content="lastVersion/lastEditor"/>
45: <td tal:content="lastVersion/versionComment"/>
46: <td><a tal:attributes="href python:version[1].absolute_url()+'/manageCommentForm'"><small tal:content="python:getattr(version[1],'comment','Add')"/></a></td>
47: <td><a tal:attributes="href python:lastVersion.absolute_url()">download</a></td>
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>
51:
52: <td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addVersionedFileObjectForm'">Upload New Version</a></td>
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>
56: </tr>
57: </span>
58: </table>
59: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>