Commit e949c523 authored by Andreas Jung's avatar Andreas Jung

- some cleanup

- refactored batch size
parent 892e80d9
<dtml-var manage_page_header> <dtml-var manage_page_header>
<dtml-var manage_tabs> <dtml-var manage_tabs>
<dtml-call "REQUEST.RESPONSE.setHeader('Content-Type', 'text/html; charset=UTF-8')" > <dtml-call "REQUEST.RESPONSE.setHeader('Content-Type', 'text/html; charset=UTF-8')" >
<p class="form-text"> <p class="form-text">
The index "&dtml-getId;" contains <dtml-var items fmt=collection-length thousands_commas> distinct values The index "&dtml-getId;" contains <dtml-var items fmt=collection-length thousands_commas> distinct values
</p> </p>
<div class="form-text"> <dtml-let size="20"> <!-- batch size -->
<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>
<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"> <table border="1" align="center" width="100%" class="form-help">
<dtml-in items start=query_start> <dtml-in items start=query_start size=size>
<tr> <tr>
<td> <td>
<dtml-if "meta_type in ('DateIndex',)"> <dtml-if "meta_type in ('DateIndex',)">
<dtml-var "DateTime(_['sequence-key'])"> <dtml-var "DateTime(_['sequence-key'])">
<dtml-else> <dtml-else>
&dtml-sequence-key; &dtml-sequence-key;
</dtml-if> </dtml-if>
</td> </td>
<td> <td>
<ul> <ul>
<dtml-let v="_['sequence-item']"> <dtml-let v="_['sequence-item']">
<dtml-if "isinstance(v, int)"> <dtml-if "isinstance(v, int)">
<li><a href="<dtml-var "getpath(v)">"<dtml-var "getpath(v)"></a></li> <li><a href="<dtml-var "getpath(v)">"<dtml-var "getpath(v)"></a></li>
<dtml-else> <dtml-else>
<dtml-in "v.keys()"> <dtml-in "v.keys()">
<li> <a href="<dtml-var "getpath(_['sequence-item'])">"><dtml-var "getpath(_['sequence-item'])"></a></li> <li> <a href="<dtml-var "getpath(_['sequence-item'])">"><dtml-var "getpath(_['sequence-item'])"></a></li>
</dtml-in> </dtml-in>
</dtml-if> </dtml-if>
</dtml-let> </dtml-let>
</ul> </ul>
</td> </td>
</tr> </tr>
</dtml-in> </dtml-in>
</table>
</dtml-let>
<dtml-var manage_page_footer> <dtml-var manage_page_footer>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment