Annotation of cdli/zpt/versionHistory.zpt, revision 1.1
1.1 ! dwinter 1: <html metal:use-macro="here/main_template/macros/page">
! 2: <tal:block metal:fill-slot="body" tal:define="options here/REQUEST">
! 3: <h2>Versioned File - <span tal:content="here/title"/></h2>
! 4: <table>
! 5: <tr>
! 6: <td>
! 7: <a tal:attributes="href python:here.REQUEST['URL2']">Back to the Folder</a><br>
! 8: <a target="_blank" tal:attributes="href python:here.REQUEST['URL2']+'/acl_users/manage_main'">add a new User</a><br><br>
! 9: <font size="+1" tal:condition="not:python:here.lockedBy==''"><a>No upload possible: File is locked by <span tal:replace="python:here.lockedBy"/></a> <a tal:attributes="href python:here.REQUEST['URL1']+'/unlock'">unlock</a></font>
! 10: <font size="+1" tal:condition="python:here.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/addVersionedFileObjectForm'">Upload New Version</a></font>
! 11: </td>
! 12: </tr>
! 13: </table>
! 14: <h4><em>Download and lock</em> will lock the whole file not only the version!</h4>
! 15: <table width="100%" border=0 cellspacing=1 cellpadding=2>
! 16: <tr>
! 17: <th align=left bgcolor="#88ff88">File</th>
! 18: <th align=left bgcolor="#cccccc">
! 19: <a href="">Rev.</a>
! 20: </th>
! 21: <th align=left bgcolor="#cccccc">
! 22: <a href="">Date</a>
! 23: </th>
! 24: <th align=left bgcolor="#cccccc">
! 25: <a href="">Author</a>
! 26: </th>
! 27: <th align=left bgcolor="#cccccc">
! 28: <a href="">Log entry</a>
! 29: </th>
! 30: <th align=left bgcolor="#cccccc" width="80">
! 31: <a href="?sortField=comment">Comment</a>
! 32: </th>
! 33: <th align=left bgcolor="#cccccc">
! 34: <a href="">Download</a>
! 35: </th>
! 36: <th align=left bgcolor="#cccccc">
! 37: <a href="">Downl. and Lock</a>
! 38: </th>
! 39: <th align=left bgcolor="#cccccc">
! 40:
! 41: </th>
! 42: </tr>
! 43: <tr tal:repeat="version python:here.getVersions()">
! 44: <td><a tal:content="python:version[1].title" tal:attributes="href python:version[1].absolute_url()+'/view'"/></td>
! 45: <td tal:content="python:version[1].versionNumber"/>
! 46: <td tal:content="python:version[1].getTime()"/>
! 47: <td tal:content="python:version[1].lastEditor()"/>
! 48: <td tal:content="python:version[1].versionComment"/>
! 49: <td><a tal:attributes="href python:version[1].absolute_url()+'/manageVCommentForm'"><small tal:content="python:version[1].getVComment()"/></a></td>
! 50: <td><a tal:attributes="href python:version[1].absolute_url()">download</a></td>
! 51: <td tal:condition="python:here.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[1].getId()+'/downloadLocked'">download and lock</a></td>
! 52: <td tal:condition="not:python:here.lockedBy==''"><a>locked</a></td>
! 53: <td><a tal:attributes="href python:version[1].absolute_url()+'/makeThisVersionCurrent_html'">Make Current</a></td>
! 54: </tr>
! 55: </table>
! 56: </tal:block>
! 57: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>