File:  [Repository] / cdli / zpt / versionHistory.zpt
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Mon Jan 21 17:19:01 2008 UTC (16 years, 3 months ago) by casties
Branches: MAIN
CVS tags: HEAD
merged zcat_only branch based on Zope ZCatalog

<html metal:use-macro="here/main_template/macros/page">
  <tal:block metal:fill-slot="body" 
    tal:define="options here/REQUEST; parent python:here.aq_parent">
  <p><a tal:attributes="href parent/absolute_url">Up to folder <span tal:content="parent/getId"/></a></p>

  <h2>Versioned File - <span tal:content="here/title"/></h2>

  <p><a tal:attributes="href python:here.getContentObject().absolute_url()+'/view'">View file</a></p>

  <p tal:condition="not:python:here.lockedBy==''">
    <a>No upload possible: File is locked by <span tal:replace="python:here.lockedBy"/></a>&nbsp;<a tal:attributes="href python:here.REQUEST['URL1']+'/unlock'">unlock</a>
  </p>
  <p tal:condition="python:here.lockedBy==''">
    <a tal:attributes="href python:here.REQUEST['URL1']+'/addVersionedFileObjectForm'">Upload New Version</a>
  </p>
  <p tal:condition="python:here.lockedBy==''">
    <a tal:attributes="href python:here.REQUEST['URL1']+'/deleteFileForm'">Delete this file</a>
  </p>

  <h4><em>Download and lock</em> will lock the whole file not only the version!</h4>

  <table  width="100%" border=0 cellspacing=1 cellpadding=2>
    <tr>
      <th align=left bgcolor="#88ff88">File</th>
      <th align=left bgcolor="#cccccc">
	<a href="">Rev.</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a href="">Date</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a href="">Author</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a href="">Log entry</a>
      </th>
      <th align=left bgcolor="#cccccc" width="80">
	<a href="?sortField=comment">Comment</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a href="">Download</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a href="">Downl. and Lock</a>
      </th>
       <th align=left bgcolor="#cccccc">
	   &nbsp;
      </th>
    </tr>
    <tr tal:repeat="version python:here.getVersions()">
	<td><a tal:content="python:version[1].getId()" tal:attributes="href python:version[1].absolute_url()+'/view'"/></td>
	<td tal:content="python:version[1].versionNumber"/>
	<td tal:content="python:version[1].getTime()"/>
	<td tal:content="python:version[1].lastEditor()"/>
	<td tal:content="python:version[1].versionComment"/>
	<td><a tal:attributes="href python:version[1].absolute_url()+'/manageVCommentForm'"><small tal:content="python:version[1].getVComment()"/></a></td>
	<td><a tal:attributes="href python:version[1].absolute_url()">download</a></td>
	<td tal:condition="python:here.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[1].getId()+'/downloadLocked'">download and lock</a></td>
	<td tal:condition="not:python:here.lockedBy==''"><a>locked</a></td>
	<td><a tal:attributes="href python:version[1].absolute_url()+'/makeThisVersionCurrent_html'">Make Current</a></td>
      </tr>
   </table>
   </tal:block>
</html>

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