From be218c50499c5eb6175300ace3c3f6d0afb5e46a Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Fri, 26 Sep 2025 19:32:09 +1000 Subject: [PATCH] first pass of using query data to allow display of files_ip only. Does use pass in list to do next/prev page (of the eids only). No images drawn at all. Definitely NOT, a usable version of PA at the moment --- templates/files.html | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/templates/files.html b/templates/files.html index f1c328f..064978c 100644 --- a/templates/files.html +++ b/templates/files.html @@ -16,14 +16,20 @@ move_paths.push(p) {% endfor %} - document.OPT = '{{OPT}}' - document.entries = '{{entry_data}}' - document.how_many = '{{OPT.how_many}}' - document.entries_len = '{{entry_data|length}}' + // GLOBALS + // how many on this page, we can change this and redraw the page to suit (also used heavily in pagination code related to entry and page list) + var howMany = {{OPT.how_many}} + + // this is the list of entry ids for the images for ALL matches for this query + var entryList={{query_data.entry_list}} + + // pageList is just those entries shown on this page from the full entryList + var pageList=[] + // force pageList to the first page + getPage(1)
-
{% if search_term is defined %} @@ -68,15 +74,11 @@ {% endif %}
-  {{OPT.how_many}} files  - {% set nxt_disabled="" %} - {% if not entry_data or entry_data|length < OPT.how_many|int %} - {% set nxt_disabled="disabled" %} - {% endif %} -
{% set ecnt=namespace( val=0 ) %} -
+
+ +
-
{% endblock main_content %} {% block script_content %}