<html metal:use-macro="here/main_template/macros/page">
<tal:block metal:fill-slot="body">
<form>
<script type="text/javascript">
<!--
isSelected=false
function toggleSelect() {
addBasket=document.getElementById('addBasket')
selectButton=document.getElementById('selectButton')
if (isSelected == false) {
for (i = 0; i < addBasket.length-1; i++)
addBasket.elements[i].checked = true ;
isSelected = true;
selectButton.value = "Deselect All";
return isSelected;
}
else {
for (i = 0; i < addBasket.length+1; i++)
addBasket.elements[i].checked = false ;
isSelected = false;
selectButton.value = "Select All";
return isSelected;
}
}
//-->
</script>
<input class="space_right" type="submit" id="selectButton" value="Select All" onClick="toggleSelect(); return false">
</form>
<tal:block tal:define="sortField python:here.REQUEST.get('sortField','title');
versions python:here.getBaskets(sortField=sortField)">
<form id="addBasket" tal:condition="python:len(versions)>0" action="basketContainer/manageBaskets">
<table width="100%" border=0 cellspacing=1 cellpadding=2>
<tr>
<th align=left bgcolor="#88ff88">
<a href="?sortField=title"> File</a>
</th>
<th align=left bgcolor="#00">
<a>Rev.</a>
</th>
<th align=left bgcolor="#cccccc">
<a href="?sortField=date">Date</a>
</th>
<th align=left bgcolor="#cccccc">
<a href="?sortField=author">Author</a>
</th>
<th align=left bgcolor="#cccccc">
<a >Last log entry</a>
</th>
<th align=left bgcolor="#cccccc" width="80">
<a href="?sortField=comment">Comment</a>
</th>
<th align=left bgcolor="#cccccc">
<a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
</th>
<th align=left bgcolor="#cccccc">
<a>Downl. and lock</a>
</th>
<th align=left bgcolor="#cccccc">
<a>Upload</a>
</th>
</tr>
<span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','title')" tal:repeat="version versions">
<tr tal:define="lastVersion python:version[1].getLastVersion()">
<td><input type="checkbox" tal:attributes="value python:version[1].getId()" name="ids"><a tal:content="python:version[1].title" tal:attributes="href python:lastVersion.absolute_url()"/></td>
<td>
<span tal:replace="lastVersion/getId"/>
<font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>
</td>
<td tal:content="lastVersion/getTime"/>
<td tal:content="lastVersion/getUser"/>
<td tal:content="lastVersion/getComment"/>
<td><a tal:attributes="href python:lastVersion.absolute_url()+'/manageVCommentForm'"><small tal:content="python:lastVersion.getComment()"/></a></td>
<!--<td><a tal:attributes="href python:version[1].absolute_url()+'/manageCommentForm'"><small tal:content="python:version[1].getComment()"/></a></td>-->
<td><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile'">download</a></td>
<td><a tal:attributes="href python:lastVersion.absolute_url()+'/downloadObjectsAsOneFile?lock=yes'"> download with locking</a>
<td><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/uploadBasket_html?basketId='+version[0]">Upload New Version</a></td>
</tr>
</span>
</table>
</form>
</tal:block>
</tal:block>
</html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>