wownero-funding-system/funding/templates/proposal/macros/transaction.html
dsc 401c26e85b - Switch to integrated addresses (address+payment_id) -> `make_integrated_address @ RPC)
- Changed homegrown caching solution to use flask extension `flask_cache` instead
- Remove detection of out-going (sent) funds, needs to be manually registered in table "payouts" now
- Updated Flask version
2020-06-09 04:38:51 +02:00

42 lines
1.2 KiB
HTML

{% macro tx_item(tx) %}
<li class="list-group-item tx_item">
<span class="height">
<b>Blockheight</b>:
{% if tx['type'] == 'pool' %}
soon^tm
{% elif tx['type'] == 'out' %}
<small>hidden</small>
{% else %}
{{tx['block_height']}}
{% endif %}
</span>
<br>
{% if tx['type'] in ['in', 'pool'] %}
<a target="_blank" href="https://explore.wownero.com/tx/{{tx['txid']}}">{{tx['txid'][:32]}}...</a>
{% else %}
{% set lulz = [
'vodka', 'hookers', 'booze', 'strippers', 'new lambo',
'new ferrari', 'new villa', 'new vacation home', 'new tesla',
'new watch', 'new home cinema set', 'throphy wife', 'drugs']
%}
<a style="font-size:11px;" href="#">Sent to author. Enjoy the {{ lulz|random }}!</a>
{% endif %}
<span class="amount{% if tx['type'] in ['pool', 'in'] %} in{% endif %}">
{% if tx['type'] in ['in', 'pool'] %}
+
{% else %}
-
{% endif %}
{{tx['amount_human']|round(3)}} WOW
{% if 'amount_usd' in tx %}
<small style="color: black">
➞ $ {{tx['amount_usd']}}
</small>
{% endif %}
</span>
</li>
{% endmacro %}