Annotation of cdli/zpt/versionHistory.zpt, revision 1.2

1.1       dwinter     1: <html metal:use-macro="here/main_template/macros/page">
1.2     ! casties     2:   <tal:block metal:fill-slot="body" 
        !             3:     tal:define="options here/REQUEST; parent python:here.aq_parent">
        !             4:   <p><a tal:attributes="href parent/absolute_url">Up to folder <span tal:content="parent/getId"/></a></p>
        !             5: 
1.1       dwinter     6:   <h2>Versioned File - <span tal:content="here/title"/></h2>
1.2     ! casties     7: 
        !             8:   <p><a tal:attributes="href python:here.getContentObject().absolute_url()+'/view'">View file</a></p>
        !             9: 
        !            10:   <p tal:condition="not:python:here.lockedBy==''">
        !            11:     <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>
        !            12:   </p>
        !            13:   <p tal:condition="python:here.lockedBy==''">
        !            14:     <a tal:attributes="href python:here.REQUEST['URL1']+'/addVersionedFileObjectForm'">Upload New Version</a>
        !            15:   </p>
        !            16:   <p tal:condition="python:here.lockedBy==''">
        !            17:     <a tal:attributes="href python:here.REQUEST['URL1']+'/deleteFileForm'">Delete this file</a>
        !            18:   </p>
        !            19: 
        !            20:   <h4><em>Download and lock</em> will lock the whole file not only the version!</h4>
        !            21: 
1.1       dwinter    22:   <table  width="100%" border=0 cellspacing=1 cellpadding=2>
                     23:     <tr>
                     24:       <th align=left bgcolor="#88ff88">File</th>
                     25:       <th align=left bgcolor="#cccccc">
                     26:    <a href="">Rev.</a>
                     27:       </th>
                     28:       <th align=left bgcolor="#cccccc">
                     29:    <a href="">Date</a>
                     30:       </th>
                     31:       <th align=left bgcolor="#cccccc">
                     32:    <a href="">Author</a>
                     33:       </th>
                     34:       <th align=left bgcolor="#cccccc">
                     35:    <a href="">Log entry</a>
                     36:       </th>
                     37:       <th align=left bgcolor="#cccccc" width="80">
                     38:    <a href="?sortField=comment">Comment</a>
                     39:       </th>
                     40:       <th align=left bgcolor="#cccccc">
                     41:    <a href="">Download</a>
                     42:       </th>
                     43:       <th align=left bgcolor="#cccccc">
                     44:    <a href="">Downl. and Lock</a>
                     45:       </th>
                     46:        <th align=left bgcolor="#cccccc">
                     47:       &nbsp;
                     48:       </th>
                     49:     </tr>
                     50:     <tr tal:repeat="version python:here.getVersions()">
1.2     ! casties    51:    <td><a tal:content="python:version[1].getId()" tal:attributes="href python:version[1].absolute_url()+'/view'"/></td>
1.1       dwinter    52:    <td tal:content="python:version[1].versionNumber"/>
                     53:    <td tal:content="python:version[1].getTime()"/>
                     54:    <td tal:content="python:version[1].lastEditor()"/>
                     55:    <td tal:content="python:version[1].versionComment"/>
                     56:    <td><a tal:attributes="href python:version[1].absolute_url()+'/manageVCommentForm'"><small tal:content="python:version[1].getVComment()"/></a></td>
                     57:    <td><a tal:attributes="href python:version[1].absolute_url()">download</a></td>
                     58:    <td tal:condition="python:here.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[1].getId()+'/downloadLocked'">download and lock</a></td>
                     59:    <td tal:condition="not:python:here.lockedBy==''"><a>locked</a></td>
                     60:    <td><a tal:attributes="href python:version[1].absolute_url()+'/makeThisVersionCurrent_html'">Make Current</a></td>
                     61:       </tr>
                     62:    </table>
                     63:    </tal:block>
                     64: </html>

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