version 1.2, 2005/11/28 12:31:56
|
version 1.3, 2005/12/08 17:11:31
|
Line 56
|
Line 56
|
<tal:x repeat="result batch"> |
<tal:x repeat="result batch"> |
<tr tal:define="version result;lastVersion python:version.getLastVersion()"> |
<tr tal:define="version result;lastVersion python:version.getLastVersion()"> |
<td><input type="checkbox" tal:attributes="value version/getId" name="ids"> |
<td><input type="checkbox" tal:attributes="value version/getId" name="ids"> |
<a tal:content="python:version.title" tal:attributes="href python:lastVersion.absolute_url()+'/view'"/></td> |
<a tal:content="python:version.title" tal:attributes="href python:here.getObjUrl(lastVersion.getId())+'/view'"/></td> |
<td> |
<td> |
<span tal:replace="lastVersion/getVersionNumber"/> |
<span tal:replace="lastVersion/getVersionNumber"/> |
<font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version.title+'/history'">(history)</a></font> |
<font size="-1"><a tal:attributes="href python:here.getObjUrl(version.getId())+'/history'">(history)</a></font> |
</td> |
</td> |
<td tal:content="lastVersion/getTime"/> |
<td tal:content="lastVersion/getTime"/> |
<td tal:content="lastVersion/lastEditor"/> |
<td tal:content="lastVersion/lastEditor"/> |
<td tal:content="lastVersion/getVersionComment"/> |
<td tal:content="lastVersion/getVersionComment"/> |
<td><a tal:attributes="href python:lastVersion.absolute_url()+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td> |
<td><a tal:attributes="href python:here.getObjUrl(lastVersion.getId())+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td> |
<!--<td><a tal:attributes="href python:version.absolute_url()+'/manageCommentForm'"><small tal:content="python:version.getComment()"/></a></td>--> |
<!--<td><a tal:attributes="href python:version.absolute_url()+'/manageCommentForm'"><small tal:content="python:version.getComment()"/></a></td>--> |
<td><a tal:attributes="href python:lastVersion.absolute_url()">download</a></td> |
<td><a tal:attributes="href python:here.getObjUrl(lastVersion.getId())">download</a></td> |
|
|
<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version.title+'/downloadLocked'">download and lock</a></td> |
<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(version.getId())+'/downloadLocked'">download and lock</a></td> |
<td tal:condition="not:python:lastVersion.lockedBy==''"><a>locked</a></td> |
<td tal:condition="not:python:lastVersion.lockedBy==''"><a>locked</a></td> |
|
|
<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version.title+'/addVersionedFileObjectForm'">Upload New Version</a></td> |
<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(version.getId())+'/'+version.title+'/addVersionedFileObjectForm'">Upload New Version</a></td> |
<td tal:condition="not:python:lastVersion.lockedBy==''"> |
<td tal:condition="not:python:lastVersion.lockedBy==''"> |
<b tal:attributes="href python:here.REQUEST['URL1']+'/'+version.title+'/addVersionedFileObjectForm'">Locked by: <span tal:replace="lastVersion/lockedBy"/></b> <a tal:attributes="href python:here.REQUEST['URL1']+'/'+version.title+'/unlock'">unlock</a> |
<b tal:attributes="href python:here.getObjUrl(version.getId())+'/addVersionedFileObjectForm'">Locked by: <span tal:replace="lastVersion/lockedBy"/></b> |
|
<a tal:attributes="href python:here.getObjUrl(version.getId())+'/unlock'">unlock</a> |
</td> |
</td> |
</tr> |
</tr> |
|
|