File:  [Repository] / versionedFile / zpt / versionFileFolderMain_image.zpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Jul 4 10:59:04 2005 UTC (19 years ago) by dwinter
Branches: MAIN
CVS tags: HEAD
imagemanagment added

    1: <html>
    2:   <h2>Versioned File Folder - <span tal:content="here/title"/></h2>
    3:   <span tal:replace="structure here/header_html"/>
    4:   <p><a target="_blank" tal:attributes="href python:here.REQUEST['URL1']+'/acl_users/manage_main'">add a new User</a></p>
    5:   <p><a tal:attributes="href python:here.REQUEST['URL1']+'/addFileForm'">add a new File</a></p>
    6:   <table  width="100%" border=0 cellspacing=1 cellpadding=2>
    7:     <tr>
    8:       <th align=left bgcolor="#88ff88">
    9:       <a href="?sortField=title"> Image</a>
   10:       </th>
   11: 
   12:       <th align=left bgcolor="#88ff88">
   13:       <a href="?sortField=title"> File</a>
   14:       </th>
   15:       <th align=left bgcolor="#cccccc">
   16: 	<a>Rev.</a>
   17:       </th>
   18:       <th align=left bgcolor="#cccccc">
   19: 	<a href="?sortField=date">Date</a>
   20:       </th>
   21:       <th align=left bgcolor="#cccccc">
   22: 	<a href="?sortField=author">Author</a>
   23:       </th>
   24:       <th align=left bgcolor="#cccccc">
   25: 	<a >Last log entry</a>
   26:       </th>
   27:       <th align=left bgcolor="#cccccc" width="80">
   28: 	<a href="?sortField=comment">Comment</a>
   29:       </th>
   30:       <th align=left bgcolor="#cccccc">
   31: 	<a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
   32:       </th>
   33:       <th align=left bgcolor="#cccccc">
   34: 	<a>Downl. and lock</a>
   35:       </th>
   36:       <th align=left bgcolor="#cccccc">
   37: 	<a>Upload</a>
   38:       </th>
   39:     </tr>
   40:     <span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','title')" tal:repeat="version python:here.getVersionedFiles(sortField=sortField)">
   41:       <tr tal:define="lastVersion python:version[1].getLastVersion()">
   42: 	<td tal:define="images python:version[1].getImages()"><a tal:attributes="href python:version[1].absolute_url()+'/manageImagesForm'">I</a>
   43: 	  <tal:block tal:condition="images">
   44: 	  <a target="_blank" tal:attributes="href python:images[0][1].absolute_url()" tal:content="structure python:images[0][1].thumb()"/>
   45: 	  </tal:block>
   46: 	</td>
   47: 	<td tal:content="python:version[1].title"/>
   48: 	<td>
   49: 	<span tal:replace="lastVersion/versionNumber"/>
   50: 	<font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>
   51: 	</td>
   52: 	<td tal:content="lastVersion/getTime"/>
   53: 	<td tal:content="lastVersion/lastEditor"/>
   54: 	<td tal:content="lastVersion/versionComment"/>
   55:         <td><a tal:attributes="href python:lastVersion.absolute_url()+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td>
   56:         <!--<td><a tal:attributes="href python:version[1].absolute_url()+'/manageCommentForm'"><small tal:content="python:version[1].getComment()"/></a></td>-->
   57: 	<td><a tal:attributes="href python:lastVersion.absolute_url()">download</a></td>
   58: 	
   59: 	<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/downloadLocked'">download and lock</a></td>
   60: 	<td tal:condition="not:python:lastVersion.lockedBy==''"><a>locked</a></td>
   61: 	
   62: 	<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addVersionedFileObjectForm'">Upload New Version</a></td>
   63: 	<td tal:condition="not:python:lastVersion.lockedBy==''">
   64: 	  <b tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addVersionedFileObjectForm'">Locked by: <span tal:replace="lastVersion/lockedBy"/></b>&nbsp;<a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/unlock'">unlock</a>
   65: 	</td>
   66:       </tr>
   67:     </span>
   68:    </table>
   69: </html>

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