| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- {% from "macros.html" import make_short %}
- {% extends "layout.html" %}
- {% block body %}
- <div class=mycard>
- <div class="mycard-header"><h1>Address</h1></div>
- <table class=mycard-body>
- <tr>
- <th>Hash</th>
- <td>{{make_short(data.hash[142:])}}</td>
- </tr>
- <tr>
- <th>Credit</th>
- <td>{{data.credit}} CHaC</td>
- </tr>
- <tr>
- <td colspan=2>
- <div>
- {% for transaction in data.sent -%}
- <div class="mycard">
- <div class="mycard-header">
- <h3><a href="/transaction/{{transaction.hash}}">Sent</a></h3>
- </div>
- <table>
- {% if transaction.senders | length > 1%}
- <tr>
- <th>From:</th>
- <td>
- {% if transaction.senders %}
- {% for sender in transaction.senders -%}
- {{make_short(sender,"address")}}
- {%- endfor %}
- {% else %}
- Mining Reward
- {%endif %}
- </td>
- </tr>
- {% endif %}
- <tr>
- <th>Value:</th>
- <th>Address:</th>
-
- </tr>
- {% for target in transaction.targets -%}
- <tr>
- <td>{{target.amount}}</td>
- <td>{{make_short(target.recipient_pk,"address")}}</td>
- </tr>
- {%- endfor %}
- </table>
- </div>
-
- {%- endfor %}
-
- </div>
-
- <div>
- {% for transaction in data.received -%}
- <div class="mycard">
- <div class="mycard-header">
- <h3><a href="/transaction/{{transaction.hash}}">Received</a></h3>
- </div>
- <table class="mycard-body">
- <tr>
- <th>From:</th>
- <td>
- {% if transaction.senders %}
- {% for sender in transaction.senders -%}
- {{make_short(sender,"address")}}
-
- {%- endfor %}
- {% else %}
- Mining Reward
- {%endif %}
- </td>
- </tr>
- <tr>
- <th>Value:</th>
- <th>Address:</th>
-
- </tr>
- {% for target in transaction.targets -%}
- <tr>
- <td>
- {{target.amount}}
- </td>
- <td>
- {{make_short(target.recipient_pk,"address")}}
- </td>
- </tr>
- {%- endfor %}
- </table>
- </div>
-
- {%- endfor %}
- </div>
- </td>
- </tr>
- </table>
- </div>
-
-
- {% endblock %}
|