add domain_url

master
moneroexamples 6 years ago
parent 86dea80659
commit 7fca3a5df7

@ -2332,8 +2332,8 @@ show_my_outputs(string tx_hash_str,
string pid_str = pod_to_hex(txd.payment_id);
string pid8_str = pod_to_hex(txd.payment_id8);
string shortcut_url = domain
+ (tx_prove ? "/prove" : "/myoutputs")
string shortcut_url = tx_prove
? string("/prove") : string("/myoutputs")
+ '/' + tx_hash_str
+ '/' + xmr_address_str
+ '/' + viewkey_str;
@ -2367,6 +2367,7 @@ show_my_outputs(string tx_hash_str,
{"payment_id8" , pid8_str},
{"decrypted_payment_id8", string{}},
{"tx_prove" , tx_prove},
{"domain_url" , domain},
{"shortcut_url" , shortcut_url}
};

@ -78,7 +78,7 @@
{{/found_our_outputs}}
</h3>
<h4>
<a href="{{shortcut_url}}" target="_blank">link to this page</a>
<a href="{{domain_url}}{{shortcut_url}}" target="_blank">link to this page</a>
</h4>
</div>

Loading…
Cancel
Save