diff --git a/src/page.h b/src/page.h index de84492..19d7d8e 100644 --- a/src/page.h +++ b/src/page.h @@ -955,7 +955,7 @@ namespace xmreg { tx_hashes = mylmdb.search(search_text, "output_public_keys"); all_possible_tx_hashes.push_back(make_pair("output_public_keys", tx_hashes)); - result_html = show_search_results(all_possible_tx_hashes); + result_html = show_search_results(search_text, all_possible_tx_hashes); // if (tx_hashes.size() == 1) // { @@ -975,16 +975,17 @@ namespace xmreg { } string - show_search_results( + show_search_results(const string& search_text, const vector>>& all_possible_tx_hashes) + { // initalise page tempate map with basic info about blockchain mstch::map context { - {"something" , "something"}, + {"search_text: " , search_text}, }; - string out_tmp; + string out_tmp {"Searching for: " + search_text + string("
")}; for (const pair>& found_txs: all_possible_tx_hashes) {