[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_generic - search.pt:1.5

Yvo Schubbe schubbe@web.de
Wed, 9 Jul 2003 14:10:30 -0400


Update of /cvs-repository/CMF/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv29409/CMFDefault/skins/zpt_generic

Modified Files:
	search.pt 
Log Message:
- fixed i18n
- added missing <thead>
- removed tabs
- some more cleanup

=== CMF/CMFDefault/skins/zpt_generic/search.pt 1.4 => 1.5 ===
--- CMF/CMFDefault/skins/zpt_generic/search.pt:1.4	Thu Mar  6 05:34:02 2003
+++ CMF/CMFDefault/skins/zpt_generic/search.pt	Wed Jul  9 14:10:25 2003
@@ -5,66 +5,65 @@
 <div metal:fill-slot="main" i18n:domain="cmf_default">
 <div class="Desktop">
 
-<h3 i18n:translate="">Search Results</h3>
+<h2 i18n:translate="">Search Results</h2>
 
 <div tal:define="b_start python:0;b_start request/b_start | b_start;
                  results python:here.doFormSearch( REQUEST=request );
-	             Batch python:modules['ZTUtils'].Batch;
-	             global batch python:Batch(results, 25, b_start, orphan=1);
+                 Batch python:modules['ZTUtils'].Batch;
+                 global batch python:Batch(results, 25, b_start, orphan=1);
                 ">
 
-<p i18n:translate="">Found
-  <span tal:define="pss modules/Products.PythonScripts.standard"
-        tal:replace="python:pss.thousands_commas(len(results))"
-        i18n:name="count">100</span> items
-  <span tal:condition="exists: request/SearchableText"
-        tal:replace="string:matching ${request/SearchableText}"
-        i18n:name="text"></span>.
-</p>
+<p i18n:translate="">Found <span
+ tal:define="pss modules/Products.PythonScripts.standard"
+ tal:replace="python:pss.thousands_commas(len(results))"
+ i18n:name="count">100</span> items<span
+ tal:condition="exists:request/SearchableText"
+     tal:omit-tag=""> matching '<span
+     tal:replace="request/SearchableText"
+     i18n:name="text">search term</span>'</span>.</p>
 
-<table class="SearchResults">
- <tr>
-  <td width="16"><br /></td>
-  <th i18n:translate="">Title</th>
-  <th i18n:translate="">Type</th>
-  <th i18n:translate="">Date</th>
+<table class="SearchResults" tal:condition="results">
+ <thead>
+  <tr>
+   <td width="16">&nbsp;</td>
+   <th i18n:translate="">Title</th>
+   <th i18n:translate="">Type</th>
+   <th i18n:translate="">Date</th>
+  </tr>
+ </thead>
+ <tbody tal:repeat="result batch">
+  <tr tal:define="objURL string:${result/getURL}/view">
+   <td><a href=""
+     tal:condition="result/getIcon|nothing"
+         tal:attributes="href objURL"><img src="" border="0" alt="" title=""
+             tal:define="alt result/Type"
+             tal:attributes="src result/getIcon;
+                             alt alt;
+                             title alt" /></a></td>
+   <td><a href=""
+     tal:attributes="href objURL"><span
+         tal:condition="result/Title"
+             tal:replace="result/Title">Title</span><span
+         tal:condition="not:result/Title"
+             tal:omit-tag=""
+             i18n:translate="">(No title)</span></a></td>
+   <td tal:content="result/Type" i18n:translate="">Type</td>
+   <td tal:content="result/Date">Date</td>
   </tr>
-<tbody tal:repeat="results batch"
-    tal:condition="results">
   <tr>
-  <td tal:define="global objURL python: results.getURL() + '/view'">
-   <span tal:condition="results/getIcon|nothing">
-     <a href="" tal:attributes="href objURL"><img src="" border="0" alt="" title=""
-                                                  tal:define="alt results/Type"
-                                                  tal:attributes="src results/getIcon; alt alt; title alt" />
-	 </a>
-    </span>
-  </td>
-  <td>
-    <a href="" tal:attributes="href objURL">
-    <span tal:condition="results/Title"
-          tal:content="results/Title">Title</span>
-    <span tal:condition="not:results/Title"
-          i18n:translate="">(No title)</span></a>
-  </td>
-  <td><span tal:content="results/Type" i18n:translate="">Type</span></td>
-  <td tal:content="results/Date">Date</td>
-</tr>
-<tr>
-  <td>&nbsp;</td>
-  <td colspan="3">
-  <em><span tal:condition="results/Description"
-            tal:content="results/Description">Description</span>
-      <span tal:condition="not:results/Description"
-            i18n:translate="">(No description)</span></em>
-  </td>
-</tr>
-</tbody>
+   <td>&nbsp;</td>
+   <td colspan="3"><em
+     tal:condition="result/Description"
+         tal:content="result/Description">Description</em><em
+     tal:condition="not:result/Description"
+         i18n:translate="">(No description)</em></td>
+  </tr>
+ </tbody>
 </table>
 <p tal:condition="not:results"
-   i18n:translate="">There are no items matching your specified criteria</p>
+   i18n:translate="">There are no items matching your specified criteria.</p>
 
- <p class="Desktop" tal:define="mq python:modules['ZTUtils'].make_query">
+<p tal:define="mq python:modules['ZTUtils'].make_query">
  <span tal:define="p batch/previous" tal:condition="p">
    <a href=""
       tal:attributes="href python: '?' + mq( request.form, b_start=p.first )"
@@ -83,4 +82,3 @@
 </div>
 </body>
 </html>
-