down show inputs when looking for our outputs until mixins get fixed

master
moneroexamples 8 years ago
parent f0271ce8e1
commit df283ec47e

@ -1525,7 +1525,8 @@ public:
context["outputs"] = outputs;
context["sum_xmr"] = xmreg::xmr_amount_to_str(sum_xmr);
context["inputs"] = inputs;
context["inputs"] = inputs;
context["show_inputs"] = false;
// read my_outputs.html
string my_outputs_html = xmreg::read(TMPL_MY_OUTPUTS);

@ -68,38 +68,43 @@
<hr>
<h3>Inputs</h3>
<div class="center">
{{#inputs}}
<h4>Key image: {{key_image}}, amount {{key_image_amount}}</h4>
{{#mixins}}
<h5>Mixin of pub key: {{mixin_pub_key}}</h5>
{{#mixin_outputs}}
<h5>
uses outputs from tx:
<a href="/tx/{{mix_tx_hash}}">{{mix_tx_hash}}</a>
</h5>
{{#found_outputs}}
<h6 style="font-family: 'Lucida Console', Monaco, monospace; font-size: 12px; font-weight: normal;">
Output public key: {{my_public_key}},
amount: {{amount}},
is ours:
{{#mine_output}}
<span style="color: #008009;font-weight: bold">{{mine_output}}</span>
{{/mine_output}}
{{^mine_output}}
{{mine_output}}
{{/mine_output}}
</h6>
{{/found_outputs}}
{{/mixin_outputs}}
{{/mixins}}
{{/inputs}}
</div>
{{#show_inputs}}
<h3>Inputs</h3>
<div class="center">
{{#inputs}}
<h4>Key image: {{key_image}}, amount {{key_image_amount}}</h4>
{{#mixins}}
<h5>Mixin of pub key: {{mixin_pub_key}}</h5>
{{#mixin_outputs}}
<h5>
uses outputs from tx:
<a href="/tx/{{mix_tx_hash}}">{{mix_tx_hash}}</a>
</h5>
{{#found_outputs}}
<h6 style="font-family: 'Lucida Console', Monaco, monospace; font-size: 12px; font-weight: normal;">
Output public key: {{my_public_key}},
amount: {{amount}},
is ours:
{{#mine_output}}
<span style="color: #008009;font-weight: bold">{{mine_output}}</span>
{{/mine_output}}
{{^mine_output}}
{{mine_output}}
{{/mine_output}}
</h6>
{{/found_outputs}}
{{/mixin_outputs}}
{{/mixins}}
{{/inputs}}
</div>
{{/show_inputs}}
</div>

Loading…
Cancel
Save