((res.first)->second).push_back(
+ mstch::map {{"tx_hash", tx_hash}}
+ );
+
out_tmp += string(" - ")
+ fmt::format("{:s}", tx_hash)
+ string("
");
@@ -1004,10 +1008,10 @@ namespace xmreg {
}
// read search_results.html
- //string search_results_html = xmreg::read(TMPL_SEARCH_RESULTS);
+ string search_results_html = xmreg::read(TMPL_SEARCH_RESULTS);
// add header and footer
- string full_page = get_full_page(out_tmp);
+ string full_page = get_full_page(search_results_html);
// render the page
return mstch::render(full_page, context);
diff --git a/src/templates/search_results.html b/src/templates/search_results.html
index 8afa6b0..1cefc6d 100644
--- a/src/templates/search_results.html
+++ b/src/templates/search_results.html
@@ -1,2 +1,48 @@
Search results
-
+ Looking for {{search_text}}
+
+
+
+
+
+ {{#has_key_images}}
+
+
This key image found in the following transactions
+
+ {{#key_images}}
+ - {{tx_hash}}
+ {{/key_images}}
+
+
+ {{/has_key_images}}
+
+
+
+
+
+
+
+ {{#tx_public_keys}}
+ {{tx_hash}}
+ {{/tx_public_keys}}
+
+
+
+
+
+ {{#payments_id}}
+ {{tx_hash}}
+ {{/payments_id}}
+
+
+
+
+
+ {{#output_public_keys}}
+ {{tx_hash}}
+ {{/output_public_keys}}
+
+
+
+
+