about summary refs log tree commit diff
path: root/gn2/wqflask/templates/gnqa_search_history.html
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/templates/gnqa_search_history.html')
-rw-r--r--gn2/wqflask/templates/gnqa_search_history.html10
1 files changed, 4 insertions, 6 deletions
diff --git a/gn2/wqflask/templates/gnqa_search_history.html b/gn2/wqflask/templates/gnqa_search_history.html
index 2c07b8c0..af38392a 100644
--- a/gn2/wqflask/templates/gnqa_search_history.html
+++ b/gn2/wqflask/templates/gnqa_search_history.html
@@ -13,25 +13,23 @@
   </header>
   <div class="container row">
   <div class="panel panel-default col-sm-6 col-sm-offset-3 ">
-    {% for record in prev_queries %}
+    {% for (key,val) in prev_queries.items() %}
     <div class="panel-body">
       <div class="row">
 	<input name="" type="checkbox" value="" class="col-sm-1">
 	<div class="col-sm-10">
-	  {% for id,val in  record.items() %}
 	    <button
-	      hx-get="/gnqna/hist/search/{{id}}"
+	      hx-get="/gnqna/hist?search_term={{key}}"
               hx-target="#swap"
 	      hx-swap="innerHTML"
 	      hx-trigger= "click"
 	      data-bs-toggle="tooltip"
 	      data-bs-placement="left"
-	      title="/gnqna/hist/search?{{id}}"
+	      title="/gnqna/hist?search_term={{key}}"
 	      style="background:transparent;border:none;cursor:pointer"
 	      >
-	      <b class="text-info">{{val}} </b>
+	      <b class="text-info">{{val.get('query')}} </b>
 	    </button>
-	  {% endfor %}
 	</div>
       </div>
       </div>