File:  [Repository] / versionedFile / zpt / versionFileFolderMain.zpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Mar 22 15:46:07 2004 UTC (20 years, 3 months ago) by dwinter
Branches: MAIN
CVS tags: HEAD
Initial revision

    1: <html>
    2:   <h2>Versioned File Folder - <span tal:content="here/title"/></h2>
    3:   <p><a target="_blank" tal:attributes="href python:here.REQUEST['URL1']+'/acl_users/manage_main'">add a new User</a></p>
    4:   <p><a tal:attributes="href python:here.REQUEST['URL1']+'/addFileForm'">add a new File</a></p>
    5:   <table  width="100%" border=0 cellspacing=1 cellpadding=2>
    6:     <tr>
    7:       <th align=left bgcolor="#88ff88">File</th>
    8:       <th align=left bgcolor="#cccccc">
    9: 	<a href="">Rev.</a>
   10:       </th>
   11:       <th align=left bgcolor="#cccccc">
   12: 	<a href="">Date</a>
   13:       </th>
   14:       <th align=left bgcolor="#cccccc">
   15: 	<a href="">Author</a>
   16:       </th>
   17:       <th align=left bgcolor="#cccccc">
   18: 	<a href="">Last log entry</a>
   19:       </th>
   20:       <th align=left bgcolor="#cccccc">
   21: 	<a href="">Download</a>
   22:       </th>
   23:       <th align=left bgcolor="#cccccc">
   24: 	<a href="">Downl. and lock</a>
   25:       </th>
   26:       <th align=left bgcolor="#cccccc">
   27: 	<a href="">Upload</a>
   28:       </th>
   29:     </tr>
   30:     <span tal:omit-tag="" tal:repeat="version here/getVersionedFiles">
   31:       <tr tal:define="lastVersion python:version[1].getLastVersion()">
   32: 	<td tal:content="python:version[1].title"/>
   33: 	<td>
   34: 	<span tal:replace="lastVersion/versionNumber"/>
   35: 	<font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>
   36: 	</td>
   37: 	<td tal:content="lastVersion/bobobase_modification_time"/>
   38: 	<td tal:content="lastVersion/lastEditor"/>
   39: 	<td tal:content="lastVersion/versionComment"/>
   40: 	<td><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/'+lastVersion.getId()">download</a></td>
   41: 	<td><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/downloadLocked'">download and lock</a></td>
   42: 	
   43: 	<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addVersionedFileObjectForm'">Upload New Version</a></td>
   44: 	<td tal:condition="not:python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addVersionedFileObjectForm'">Locked by: <span tal:replace="lastVersion/lockedBy"/></a>&nbsp;<a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/unlock'">unlock</a></td>
   45:       </tr>
   46:     </span>
   47:    </table>
   48: </html>

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