File:  [Repository] / cdli / zpt / versionHistory.zpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sat Jun 17 14:53:35 2006 UTC (18 years ago) by dwinter
Branches: MAIN
CVS tags: zcat_only_1, Root_zcat_only_1, HEAD
get last changes and changes by author, break lock added

<html metal:use-macro="here/main_template/macros/page">
  <tal:block metal:fill-slot="body" tal:define="options here/REQUEST">
  <h2>Versioned File - <span tal:content="here/title"/></h2>
  <table>
    <tr>
      <td>
	<a tal:attributes="href python:here.REQUEST['URL2']">Back to the Folder</a><br>
	<a target="_blank" tal:attributes="href python:here.REQUEST['URL2']+'/acl_users/manage_main'">add a new User</a><br><br>
	<font size="+1" 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></font>
	<font size="+1" tal:condition="python:here.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/addVersionedFileObjectForm'">Upload New Version</a></font>
     </td>
    </tr>
  </table>
<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].title" 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>