[Zope-Checkins]
SVN: Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/dtml/browseIndex.dtml
- some cleanup
Andreas Jung
andreas at andreas-jung.com
Wed Feb 2 14:36:37 EST 2005
Log message for revision 29020:
- some cleanup
- refactored batch size
Changed:
U Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/dtml/browseIndex.dtml
-=-
Modified: Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/dtml/browseIndex.dtml
===================================================================
--- Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/dtml/browseIndex.dtml 2005-02-02 16:47:27 UTC (rev 29019)
+++ Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/dtml/browseIndex.dtml 2005-02-02 19:36:36 UTC (rev 29020)
@@ -1,49 +1,53 @@
<dtml-var manage_page_header>
<dtml-var manage_tabs>
+
<dtml-call "REQUEST.RESPONSE.setHeader('Content-Type', 'text/html; charset=UTF-8')" >
<p class="form-text">
The index "&dtml-getId;" contains <dtml-var items fmt=collection-length thousands_commas> distinct values
</p>
-<div class="form-text">
- <dtml-in items previous size=20 start=query_start >
- <a href="&dtml-URL;?query_start=&dtml-previous-sequence-start-number;">
- [Previous <dtml-var previous-sequence-size> entries]
- </a>
- </dtml-in>
- <dtml-in items next size=20 start=query_start >
- <a href="&dtml-URL;?query_start=&dtml-next-sequence-start-number;">
- [Next <dtml-var next-sequence-size> entries]
- </a>
- </dtml-in>
-</div>
+<dtml-let size="20"> <!-- batch size -->
+ <div class="form-text">
+ <dtml-in items previous size=size start=query_start >
+ <a href="&dtml-URL;?query_start=&dtml-previous-sequence-start-number;">
+ [Previous <dtml-var previous-sequence-size> entries]
+ </a>
+ </dtml-in>
+ <dtml-in items next size=size start=query_start >
+ <a href="&dtml-URL;?query_start=&dtml-next-sequence-start-number;">
+ [Next <dtml-var next-sequence-size> entries]
+ </a>
+ </dtml-in>
+ </div>
-<table border="1" align="center" width="100%" class="form-help">
- <dtml-in items start=query_start>
- <tr>
- <td>
- <dtml-if "meta_type in ('DateIndex',)">
- <dtml-var "DateTime(_['sequence-key'])">
- <dtml-else>
- &dtml-sequence-key;
- </dtml-if>
- </td>
- <td>
- <ul>
- <dtml-let v="_['sequence-item']">
- <dtml-if "isinstance(v, int)">
- <li><a href="<dtml-var "getpath(v)">"<dtml-var "getpath(v)"></a></li>
- <dtml-else>
- <dtml-in "v.keys()">
- <li> <a href="<dtml-var "getpath(_['sequence-item'])">"><dtml-var "getpath(_['sequence-item'])"></a></li>
- </dtml-in>
- </dtml-if>
- </dtml-let>
- </ul>
- </td>
- </tr>
- </dtml-in>
+ <table border="1" align="center" width="100%" class="form-help">
+ <dtml-in items start=query_start size=size>
+ <tr>
+ <td>
+ <dtml-if "meta_type in ('DateIndex',)">
+ <dtml-var "DateTime(_['sequence-key'])">
+ <dtml-else>
+ &dtml-sequence-key;
+ </dtml-if>
+ </td>
+ <td>
+ <ul>
+ <dtml-let v="_['sequence-item']">
+ <dtml-if "isinstance(v, int)">
+ <li><a href="<dtml-var "getpath(v)">"<dtml-var "getpath(v)"></a></li>
+ <dtml-else>
+ <dtml-in "v.keys()">
+ <li> <a href="<dtml-var "getpath(_['sequence-item'])">"><dtml-var "getpath(_['sequence-item'])"></a></li>
+ </dtml-in>
+ </dtml-if>
+ </dtml-let>
+ </ul>
+ </td>
+ </tr>
+ </dtml-in>
+ </table>
+</dtml-let>
<dtml-var manage_page_footer>
More information about the Zope-Checkins
mailing list