mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
Jinja2 macro for transaction items
This commit is contained in:
parent
80c79966a5
commit
25caa397fd
2 changed files with 31 additions and 35 deletions
28
funding/templates/proposal/macros/transaction.html
Normal file
28
funding/templates/proposal/macros/transaction.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
{% macro tx_item(tx) %}
|
||||
<li class="list-group-item tx_item">
|
||||
<span class="datetime">
|
||||
{{tx['datetime'].strftime('%Y-%m-%d %H:%M')}}
|
||||
</span>
|
||||
|
||||
<span class="height">
|
||||
<b>Blockheight</b>: {{tx['height']}}</span>
|
||||
<br>
|
||||
|
||||
<a target="_blank" href="https://explore.wownero.com/tx/{{tx['txid']}}">{{tx['txid'][:32]}}...</a>
|
||||
<span class="amount{% if tx['type'] == 'in' %} in{% endif %}">
|
||||
{% if tx['type'] == 'in' %}
|
||||
+
|
||||
{% 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue