[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser - contents.pt:1.4

Jim Fulton jim@zope.com
Thu, 13 Jun 2002 19:16:12 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv10697/lib/python/Zope/App/OFS/Content/Folder/Views/Browser

Modified Files:
	contents.pt 
Log Message:
Got icons working, and, along the way:

- Implemented the icon directive

- Implemented
  http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ResourcesProposal

- Added a special view, named '', for service manager containers that
  allows resources to have URLs like:

  http://foo.com/@@/resourcename

- Fixed some server code that caused HTTP response data to get
  promoted to unicode

- Updated the folder contents page to display icons.

- Ported icons for folder, file, image, and zptpage. Many more icons
  need to be ported or created.



=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/contents.pt 1.3 => 1.4 ===
 <style metal:fill-slot="headers" type="text/css">
 <!--
-.ContentListing {
-    width: 100%;
-}
 
 .ContentIcon {
     width: 20px;
@@ -13,6 +10,7 @@
 .ContentTitle {
     text-align: left;
 }
+
 -->
 </style>
 </head>
@@ -29,7 +27,7 @@
   
       <tr>
 	<td class="ContentIcon"><br /> </td>
-	<th class="ContentTitle">Title</th>
+	<th class="ContentTitle"></th>
       </tr>
   
       <!--
@@ -37,9 +35,10 @@
 	**   '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
+	**   'icon'  : the icon img tag for the contained object
 		       (may be None)
 	-->
+
       <tr tal:repeat="info view/listContentInfo">
   
 	<td class="ContentSelect">
@@ -47,10 +46,7 @@
 		 tal:attributes="value info/id" />
 	</td>
   
-	<td class="ContentIcon">
-	  <img alt="Folder" src="../../ZMI/www/folder_icon.gif"
-	       tal:condition="info/icon"
-	       tal:attributes="src info/icon" />
+	<td class="ContentIcon" tal:content="structure info/icon|default">
 	</td>
   
 	<td class="ContentTitle">