diff --git a/app.py b/app.py index 3415a39..9fd9875 100644 --- a/app.py +++ b/app.py @@ -99,33 +99,32 @@ def search(): search_string = request.form.get("search").strip() if search_string == "": - return render_template('_search_noresult.html') + return render_template('_search_noresult.html', config=this_config) if is_slot_number(search_string): - print("slot search=", search_string) maprows = list(recent_blocks_database.find_block_by_slotnumber(int(search_string))) if len(maprows): return render_template('_blockslist.html', config=this_config, blocks=maprows) else: - return render_template('_search_noresult.html') + return render_template('_search_noresult.html', config=this_config) elif is_block_hash(search_string): print("blockhash search=", search_string) maprows = list(recent_blocks_database.find_block_by_blockhash(search_string)) if len(maprows): return render_template('_blockslist.html', config=this_config, blocks=maprows) else: - return render_template('_search_noresult.html') + return render_template('_search_noresult.html', config=this_config) elif is_tx_sig(search_string): print("txsig search=", search_string) maprows = list(transaction_database.find_transaction_by_sig(search_string)) if len(maprows): return render_template('_txlist.html', config=this_config, transactions=maprows) else: - return render_template('_search_noresult.html') + return render_template('_search_noresult.html', config=this_config) else: - return render_template('_search_unsupported.html', search_string=search_string) + return render_template('_search_unsupported.html', config=this_config, search_string=search_string) - return render_template('search.html') + return render_template('search.html', config=this_config) # uid INTEGER, diff --git a/templates/_navbar.html b/templates/_navbar.html new file mode 100644 index 0000000..a00c257 --- /dev/null +++ b/templates/_navbar.html @@ -0,0 +1,15 @@ + diff --git a/templates/block_details.html b/templates/block_details.html index d86e19e..ec4c963 100644 --- a/templates/block_details.html +++ b/templates/block_details.html @@ -17,6 +17,9 @@
+ + {% include "_navbar.html" %} +
Details
diff --git a/templates/recent_blocks.html b/templates/recent_blocks.html index 9f81c34..4a58923 100644 --- a/templates/recent_blocks.html +++ b/templates/recent_blocks.html @@ -20,6 +20,9 @@
+ + {% include "_navbar.html" %} +
diff --git a/templates/search.html b/templates/search.html index b9115d4..b6686e2 100644 --- a/templates/search.html +++ b/templates/search.html @@ -19,6 +19,9 @@
+ + {% include "_navbar.html" %} +
diff --git a/templates/tx-errors.html b/templates/tx-errors.html index fa49a10..2d2beb3 100644 --- a/templates/tx-errors.html +++ b/templates/tx-errors.html @@ -19,6 +19,9 @@
+ + {% include "_navbar.html" %} +