[CMF-checkins] CVS: CMF/CMFCollector/skins/collector - collector_macros.pt:1.11

Ken Manheimer klm@zope.com
Thu, 18 Oct 2001 13:43:02 -0400


Update of /cvs-repository/CMF/CMFCollector/skins/collector
In directory cvs.zope.org:/tmp/cvs-serv12406

Modified Files:
	collector_macros.pt 
Log Message:
Include indication of search results size, when different than total
number of issues.


=== CMF/CMFCollector/skins/collector/collector_macros.pt 1.10 => 1.11 ===
           </th>
 
-          <td align="center" NOWRAP>
+          <td align="center" NOWRAP
+              tal:define="total here/length;
+                          found python: len(items)">
             <b>
-              <span tal:replace="python: 'Issues %s to %s of %s'
-                                   % (batch.start, batch.end, here.length())"/>
+              <span tal:replace="python: 'Issues %s => %s of'
+                                   % (batch.start, batch.end)"/>
+              <span tal:condition="python: total != found"
+                    tal:replace="python: '%s found (%s total)'
+                                         % (found, total)">FOUND/TOTAL</span>
+              <span tal:condition="python: total == found"
+                    tal:replace="python: '%s total' % total">TOTAL</span>
             </b>
           </td>