File:  [Repository] / externalVersionedFile / zpt / versionFileFolderMain.zpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 25 10:00:25 2004 UTC (19 years, 6 months ago) by dwinter
Branches: dwinter, MAIN
CVS tags: first, HEAD
new

<html>
  <h2>Versioned File Folder - <span tal:content="here/title"/></h2>
  <span tal:replace="structure here/header_html"/>
  <p><a target="_blank" tal:attributes="href python:here.REQUEST['URL1']+'/acl_users/manage_main'">add a new User</a></p>
  <p><a tal:attributes="href python:here.REQUEST['URL1']+'/addFileForm'">add a new File</a></p>
  <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="#cccccc">
	<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">
	<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 python:here.getVersionedFiles(sortField=sortField)">
      <tr tal:define="lastVersion python:version[1].getLastVersion()">
	<td tal:content="python:version[1].title"/>
	<td>
	<span tal:replace="lastVersion/versionNumber"/>
	<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/lastEditor"/>
	<td tal:content="lastVersion/versionComment"/>
	<td><a tal:attributes="href python:lastVersion.absolute_url()">download</a></td>
	
	<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/downloadLocked'">download and lock</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[0]+'/addExternalVersionedFileObjectForm'">Upload New Version</a></td>
	<td tal:condition="not:python:lastVersion.lockedBy==''">
	  <b tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addExternalVersionedFileObjectForm'">Locked by: <span tal:replace="lastVersion/lockedBy"/></b>&nbsp;<a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/unlock'">unlock</a>
	</td>
      </tr>
    </span>
   </table>
</html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>