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

<html>
  <h2>Versioned File Folder - <span tal:content="here/title"/></h2>
  <span tal:replace="structure here/header_html"/>
  <p><a target="_blank" tal:attributes="href python:here.REQUEST['URL1']+'/acl_users/manage_main'">add a new User</a></p>
  <p><a tal:attributes="href python:here.REQUEST['URL1']+'/addFileForm'">add a new File</a></p>
  <table  width="100%" border=0 cellspacing=1 cellpadding=2>
    <tr>
      <th align=left bgcolor="#88ff88">
      <a href="?sortField=title"> Image</a>
      </th>

      <th align=left bgcolor="#88ff88">
      <a href="?sortField=title"> File</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a>Rev.</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a href="?sortField=date">Date</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a href="?sortField=author">Author</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a >Last log entry</a>
      </th>
      <th align=left bgcolor="#cccccc" width="80">
	<a href="?sortField=comment">Comment</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a>Downl. and lock</a>
      </th>
      <th align=left bgcolor="#cccccc">
	<a>Upload</a>
      </th>
    </tr>
    <span tal:omit-tag="" tal:define="sortField python:here.REQUEST.get('sortField','title')" tal:repeat="version python:here.getVersionedFiles(sortField=sortField)">
      <tr tal:define="lastVersion python:version[1].getLastVersion()">
	<td tal:define="images python:version[1].getImages()"><a tal:attributes="href python:version[1].absolute_url()+'/manageImagesForm'">I</a>
	  <tal:block tal:condition="images">
	  <a target="_blank" tal:attributes="href python:images[0][1].absolute_url()" tal:content="structure python:images[0][1].thumb()"/>
	  </tal:block>
	</td>
	<td tal:content="python:version[1].title"/>
	<td>
	<span tal:replace="lastVersion/versionNumber"/>
	<font size="-1"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/history'">(history)</a></font>
	</td>
	<td tal:content="lastVersion/getTime"/>
	<td tal:content="lastVersion/lastEditor"/>
	<td tal:content="lastVersion/versionComment"/>
        <td><a tal:attributes="href python:lastVersion.absolute_url()+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td>
        <!--<td><a tal:attributes="href python:version[1].absolute_url()+'/manageCommentForm'"><small tal:content="python:version[1].getComment()"/></a></td>-->
	<td><a tal:attributes="href python:lastVersion.absolute_url()">download</a></td>
	
	<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/downloadLocked'">download and lock</a></td>
	<td tal:condition="not:python:lastVersion.lockedBy==''"><a>locked</a></td>
	
	<td tal:condition="python:lastVersion.lockedBy==''"><a tal:attributes="href python:here.REQUEST['URL1']+'/'+version[0]+'/addVersionedFileObjectForm'">Upload New Version</a></td>
	<td tal:condition="not:python:lastVersion.lockedBy==''">
	  <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>
	</td>
      </tr>
    </span>
   </table>
</html>

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