Skip to content

Commit

Permalink
this renders the results table only if a path is specified, avoiding …
Browse files Browse the repository at this point in the history
…unnecessary loading time (proxy error) #155
  • Loading branch information
sauzher committed Sep 26, 2024
1 parent 751bd3d commit 783f0be
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Products/ZCatalog/dtml/catalogView.dtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@

<form action="&dtml-URL1;" name="objectItems" id="objectItems">
<p class="help-text">
The catalog <em>&dtml-id;</em> contains
The catalog <em>&dtml-id;</em> contains
<span class="badge badge-success">
<dtml-var results fmt=collection-length thousands_commas>
<dtml-var results fmt=collection-length thousands_commas>
</span>
record(s)
<dtml-if filterpath>
in the path <code>&dtml-filterpath;</code>
</dtml-if>
</p>

<dtml-if filterpath>
<nav class="zmi-find-results nav mb-3">
<div class="col-6 text-left pl-1">
<dtml-in results previous size=20 start=query_start >
Expand Down Expand Up @@ -99,6 +101,12 @@
<input class="btn btn-primary" type="submit" value=" Remove " name="manage_uncatalogObject:method" />
<input class="btn btn-primary" type="submit" value=" Update " name="manage_catalogObject:method" />
</div>
<dtml-else>
<p class="help-text">
The path filter is Empty. Please specify a path filter to start a search ("/" for the whole catalog).
</p>
</dtml-if>

</form>
<dtml-else>
<p class="helo-text">
Expand Down Expand Up @@ -162,8 +170,6 @@



//-->
</script>

<style>
/* OBJECT CLASS ZCatalog: Neutralize Zope Overwrites of zmi.base.css, L891 */
Expand Down

0 comments on commit 783f0be

Please sign in to comment.