template updated for datetime search results

This commit is contained in:
moneroexamples 2016-11-26 13:15:54 +08:00
parent 248c6fcaee
commit 4174fd2c7b
2 changed files with 56 additions and 4 deletions

View File

@ -2403,7 +2403,7 @@ public:
= blk_timestamp_utc_start + 59;
all_possible_tx_hashes.push_back(
make_pair("tx_public_keys", vector<string>{}));
make_pair("tx_in_the_minute", vector<string>{}));
vector<string>& txs_found_ref
= all_possible_tx_hashes.back().second;
@ -2436,7 +2436,7 @@ public:
= blk_timestamp_utc_start + 3599;
all_possible_tx_hashes.push_back(
make_pair("tx_public_keys", vector<string>{}));
make_pair("tx_in_the_hour", vector<string>{}));
vector<string>& txs_found_ref
= all_possible_tx_hashes.back().second;
@ -2469,7 +2469,7 @@ public:
= blk_timestamp_utc_start + 86399;
all_possible_tx_hashes.push_back(
make_pair("tx_public_keys", vector<string>{}));
make_pair("tx_in_the_day", vector<string>{}));
vector<string>& txs_found_ref
= all_possible_tx_hashes.back().second;

View File

@ -3,7 +3,7 @@
{{#no_results}}
<h4 style="margin-bottom:2px">Nothing in the blockchain has been found that matches the search term :-(</h4>
<h5 style="margin:2px">Note: there might be 1-2 min delay betweem my blockchain and others</h5>
<h5 style="margin:2px">Note: there might be 1-2 min delay between my blockchain and others</h5>
{{/no_results}}
{{#to_many_results}}
@ -127,3 +127,55 @@
{{/has_output_public_keys_based_on_amount_idx}}
</div>
<div>
{{#has_tx_in_the_minute}}
<h3>Transactions performed in the given minute</h3>
<table class="center" style="width:90%">
{{>tx_table_head}}
{{#tx_in_the_minute}}
{{>tx_table_row}}
{{/tx_in_the_minute}}
</table>
{{/has_tx_in_the_minute}}
</div>
<div>
{{#has_tx_in_the_hour}}
<h3>Transactions performed in the given hour</h3>
<table class="center" style="width:90%">
{{>tx_table_head}}
{{#tx_in_the_hour}}
{{>tx_table_row}}
{{/tx_in_the_hour}}
</table>
{{/has_tx_in_the_hour}}
</div>
<div>
{{#has_tx_in_the_day}}
<h3>Transactions performed in the given day</h3>
<table class="center" style="width:90%">
{{>tx_table_head}}
{{#tx_in_the_day}}
{{>tx_table_row}}
{{/tx_in_the_day}}
</table>
{{/has_tx_in_the_day}}
</div>