1: <html metal:use-macro="here/main_template/macros/page">
2: <tal:block metal:fill-slot="body" tal:define="results here/getContent;
3: start request/start|python:0;
4: batch python:modules['ZTUtils'].Batch(results,
5: size=20,
6: start=start);
7: previous python:batch.previous;
8: next python:batch.next">
9:
10: <h2>Basket: <span tal:replace="python:here.aq_parent.title"/></h2>
11: <p>contains <span tal:replace="here/numberOfItems"/> items
12: <a tal:attributes="href python:here.aq_parent.absolute_url()+'/history'">View history</a>
13: </p>
14: <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile'"> download basket (combined in one file)</a>
15: <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile?lock=yes'"> download basket and lock all files(combined in one file)</a>
16: <p><a tal:attributes="href python:here.basketContainer.absolute_url()+'/uploadBasket_html'"> upload a basket </a>
17: <p>red = basket refers to a not actual version</p>
18: <p>red and DEL = file has been deleted</p>
19: <p>
20: <a tal:condition="previous"
21: tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
22: href="previous_url">previous <span tal:replace="previous/length">20</span> results</a>
23: <a tal:condition="next"
24: tal:attributes="href string:${request/URL0}?start:int=${next/first}"
25: href="next_url">next <span tal:replace="next/length">20</span> results</a>
26: </p>
27: <form action="deleteObjects">
28: <table width="100%" border=0 cellspacing=1 cellpadding=2>
29: <tr>
30: <th align=left bgcolor="#cccccc">
31: <a href="?sortField=title"> File</a>
32: </th>
33: <th align=left bgcolor="#cccccc">
34: <a> Designation</a>
35: </th>
36:
37: <th align=left bgcolor="#cccccc">
38: <a>Revisions</a>
39: </th>
40: <th align=left bgcolor="#cccccc">
41: <a href="?sortField=date">Date</a>
42: </th>
43: <th align=left bgcolor="#cccccc">
44: <a href="?sortField=author">Author</a>
45: </th>
46: <th align=left bgcolor="#cccccc">
47: <a >Last log entry</a>
48: </th>
49: <th align=left bgcolor="#cccccc" width="80">
50: <a href="?sortField=comment">Comment</a>
51: </th>
52: <th align=left bgcolor="#cccccc">
53: <a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
54: </th>
55: <th align=left bgcolor="#cccccc">
56: <a>Downl. and lock</a>
57: </th>
58: <th align=left bgcolor="#cccccc">
59: <a>Upload</a>
60: </th>
61: <th>
62: C
63: </th>
64: </tr>
65:
66: <tal:x repeat="result batch">
67: <tal:x tal:define="version python:here.getFile(result);lastVersion python:here.getFileLastVersion(result);actual python:here.isActual(result)">
68: <tr tal:attributes="class python:test(actual[0],'actual','old')">
69: <td><input type="checkbox" tal:attributes="value version/getId" name="ids">
70: <tal:x condition="python:actual[1]==-1">DEL</tal:x> <a tal:content="python:version.getTitle()" tal:attributes="href python:here.getObjUrl(result)+
71: '/'+lastVersion.getId()+'/view'"/>
72: </td>
73: <td tal:condition="python:hasattr(lastVersion,'getDesignation')">
74: <span tal:content="lastVersion/getDesignation"/>
75: </td>
76: <td tal:condition="not:python:hasattr(lastVersion,'getDesignation')">
77: <span tal:content="python:'error'"/>
78: </td>
79: <td>
80: <span tal:replace="lastVersion/getVersionNumber"/>
81: <font size="-1"><a tal:attributes="href python:here.getObjUrl(result)+'/history'">(history)</a></font>
82: </td>
83: <td tal:content="lastVersion/getTime"/>
84: <td tal:content="lastVersion/lastEditor"/>
85: <td tal:content="lastVersion/getVersionComment"/>
86: <td><a tal:attributes="href python:here.getObjUrl(result)+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td>
87: <!--<td><a tal:attributes="href python:version.absolute_url()+'/manageCommentForm'"><small tal:content="python:version.getComment()"/></a></td>-->
88: <td><a tal:attributes="href python:here.getObjUrl(result)">download</a></td>
89:
90: <td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result)+'/downloadLocked'">download and lock</a></td>
91: <td tal:condition="not:python:version.lockedBy==''"><a>locked</a></td>
92:
93: <td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result)+'/'+version.title+'/addCDLIFileObjectForm'">Upload New Version</a></td>
94: <td tal:condition="not:python:version.lockedBy==''">
95: <b tal:attributes="href python:here.getObjUrl(result)+'/addCDLIFileObjectForm'">Locked by: <span tal:replace="version/lockedBy"/></b>
96: <a tal:attributes="href python:here.getObjUrl(result)+'/unlock'">unlock</a>
97: </td>
98: <td>
99: <a tal:repeat="collection python:version.isContainedInBaskets(context=here)" tal:content="collection/title"
100: tal:attributes="href python:collection.getLastVersion().absolute_url()"/> </td>
101: </tr>
102: </tal:x>
103: </tal:x>
104:
105: </table>
106: <p>
107: <a tal:condition="previous"
108: tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
109: href="previous_url">previous <span tal:replace="previous/length">20</span> results</a>
110: <a tal:condition="next"
111: tal:attributes="href string:${request/URL0}?start:int=${next/first}"
112: href="next_url">next <span tal:replace="next/length">20</span> results</a>
113: </p>
114: <input type="submit" value="delete from basket">
115: </tal:block>
116: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>