[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/www - folder_main.pt:1.1.2.1

Tres Seaver tseaver@zope.com
Tue, 20 Nov 2001 10:05:27 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/www
In directory cvs.zope.org:/tmp/cvs-serv29829/lib/python/Zope/App/OFS/www

Added Files:
      Tag: Zope-3x-branch
	folder_main.pt 
Log Message:
 - Yeehaw!

=== Added File Zope3/lib/python/Zope/App/OFS/www/folder_main.pt ===
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
      metal:use-macro="presentation/standard_macros/html">
  -->
<head>
       
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
       
  <metallica:block fill-slot="stylesheet">
  <link rel="stylesheet" type="text/css"
        href="../../ZMI/www/zmi_stylesheet.css" />
       
  <style type="text/css">

.ContentListing {
    width: 100%;
}

.ContentIcon {
    width: 20px;
}

.ContentTitle {
    text-align: left;
}

  </style>

  </metallica:block>

</head>

<body>

<table class="ContentListing">

  <caption>Folder Contents <a href="adders"> Add... </a> </caption>

  <tbody>

    <tr>
      <td class="ContentIcon"><br /> </td>
      <th class="ContentTitle">Title</th>
    </tr>

    <!--
      ** listContentInfo returns a sequence of mappings, containing:
      **   'id'    : the ID of the contained within the container
      **   'url'   : the absolute URL of the contained object
      **   'title' : the title of the contained object
      **   'icon'  : the absolute URL of the icon, for the contained object
                     (may be None)
      -->
    <tr tal:repeat="info container/listContentInfo">

      <td class="ContentIcon">
        <img alt="Folder" src="../../ZMI/www/folder_icon.gif"
             tal:condition="info/url"
             tal:attributes="src info/url" />
      </td>

      <td class="ContentTitle">
        <a href="subfolder_id"
           tal:attributes="href info/url"
           tal:content="info/title"
        >Folder Title or ID here</a>
      </td>

    </tr>

    <tr tal:condition="nothing">

      <td class="ContentIcon">
        <img alt="Document" src="../../ZMI/www/document_icon.gif" />
      </td>

      <td class="ContentTitle">
         <a href="document_id">Document Title or ID here</a>
      </td>

    </tr>
  </tbody>

</table>

</body>
</html>