version 1.12, 2007/04/23 13:07:10
|
version 1.13, 2008/10/29 12:10:05
|
Line 107 Note that any file you download will hav
|
Line 107 Note that any file you download will hav
|
|
|
|
|
<tal:x repeat="result batch"> |
<tal:x repeat="result batch"> |
<tal:x tal:define="version python:here.getFile(result);lastVersion python:here.getFileLastVersion(result);actual python:here.isActual(result);"> |
<tal:x tal:define="version python:here.getFileObject(result[0]);lastVersion python:version.getVersionNr(result[1]);actual python:here.isActual(version,result[1]);"> |
<tr tal:attributes="class python:test(actual[0],'actual','old')"> |
<tr tal:attributes="class python:test(actual[0],'actual','old')"> |
<td><nobr><input type="checkbox" tal:attributes="value version/getId" name="ids"> |
<td><nobr><input type="checkbox" tal:attributes="value version/getId" name="ids"> |
<tal:x condition="python:actual[1]==-1">DEL</tal:x> <a tal:content="python:version.getTitle()" tal:attributes="href python:here.getObjUrl(result)+'/'+lastVersion.getId()+'/view?fromBasket='+here.aq_parent.id+'&filenr='+str(results.index(result))"/></nobr> |
<tal:x condition="python:actual[1]==-1">DEL</tal:x> <a tal:content="python:version.getTitle()" tal:attributes="href python:here.getObjUrl(result[0])+'/'+lastVersion.getId()+'/view?fromBasket='+here.aq_parent.id+'&filenr='+str(results.index(result))"/></nobr> |
</td> |
</td> |
<td tal:condition="python:hasattr(lastVersion,'getDesignation')"> |
<td tal:condition="python:hasattr(lastVersion,'getDesignation')"> |
<span tal:content="lastVersion/getDesignation"/> |
<span tal:content="python:here.unicodify(lastVersion.getDesignation())"/> |
</td> |
</td> |
<td tal:condition="not:python:hasattr(lastVersion,'getDesignation')"> |
<td tal:condition="not:python:hasattr(lastVersion,'getDesignation')"> |
<span tal:content="python:'error'"/> |
<span tal:content="python:'error'"/> |
</td> |
</td> |
<td> |
<td> |
<span tal:replace="lastVersion/getVersionNumber"/> |
<span tal:replace="lastVersion/getVersionNumber"/> |
<nobr><a tal:attributes="href python:here.getObjUrl(result)+'/history'">(history)</a></nobr> |
<nobr><a tal:attributes="href python:here.getObjUrl(result[0])+'/history'">(history)</a></nobr> |
</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:here.getObjUrl(result)+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td> |
<td><a tal:attributes="href python:here.getObjUrl(result[0])+'/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:here.getObjUrl(result)">download</a></td> |
<td><a tal:attributes="href python:here.getObjUrl(result[0])">download</a></td> |
|
|
<td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result)+'/downloadLocked'">download and lock</a></td> |
<td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result[0])+'/downloadLocked'">download and lock</a></td> |
<td tal:condition="not:python:version.lockedBy==''"><a>locked</a></td> |
<td tal:condition="not:python:version.lockedBy==''"><a>locked</a></td> |
|
|
<td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result)+'/'+version.title+'/addCDLIFileObjectForm?come_from='+here.URLquote(here.absolute_url())">Upload New Version</a> </td> |
<td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result[0])+'/'+version.title+'/addCDLIFileObjectForm?come_from='+here.URLquote(here.absolute_url())">Upload New Version</a> </td> |
<td tal:condition="not:python:version.lockedBy==''"> |
<td tal:condition="not:python:version.lockedBy==''"> |
<b tal:attributes="href python:here.getObjUrl(result)+'/addCDLIFileObjectForm'">Locked by: <span tal:replace="version/lockedBy"/></b> |
<b tal:attributes="href python:here.getObjUrl(result[0])+'/addCDLIFileObjectForm'">Locked by: <span tal:replace="version/lockedBy"/></b> |
<a tal:attributes="href python:here.getObjUrl(result)+'/unlock'">unlock</a> |
<a tal:attributes="href python:here.getObjUrl(result[0])+'/unlock'">unlock</a> |
</td> |
</td> |
<td> |
<td> |
<a tal:repeat="collection python:version.isContainedInBaskets(context=here)" tal:content="collection/title" |
<a tal:repeat="collection python:version.isContainedInBaskets(context=here)" tal:content="collection/title" |