from_to_transaction.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {% from "macros.html" import make_short %}
  2. <div class="transaction mycard">
  3. <div class="mycard-header">
  4. <h3>Transaction</h3>
  5. </div>
  6. <table class="mycard-body">
  7. <tr>
  8. <th>Hash</th>
  9. <td>{{make_short(transaction.hash,"transaction")}}</td>
  10. </tr>
  11. {% if transaction.block_id %}
  12. <tr>
  13. <th>Block ID</th>
  14. <td>{{transaction.block_id}}</td>
  15. </tr>
  16. {%endif%}
  17. <tr>
  18. <th>Block hash</th>
  19. <td>{{make_short(transaction.block_hash,"block")}}</td>
  20. </tr>
  21. <tr>
  22. <th>Number of confirmations</th>
  23. <td>{{transaction.number_confirmations}}</td>
  24. </tr>
  25. {% if transaction.fee %}
  26. <tr>
  27. <th>Transaction Fee</th>
  28. <td>{{transaction.fee}}</td>
  29. </tr>
  30. {%endif%}
  31. <tr>
  32. <th>Timestamp</th>
  33. <td>{{transaction.timestamp}}</td>
  34. </tr>
  35. <tr>
  36. <th colspan="2">Sender</th>
  37. </tr>
  38. {% for sender in transaction.senders-%}
  39. <tr>
  40. <td colspan="2">
  41. {{ make_short(sender,'address') }}
  42. </td>
  43. </tr>
  44. {%- endfor %}
  45. <tr>
  46. <th>Input Transaction</th>
  47. <th>Transaction Signature</th>
  48. </tr>
  49. {% for i in transaction.inp-%}
  50. <tr>
  51. <td>{{make_short(i.input.transaction_hash,"transaction")}}</td>
  52. <td>{{make_short(i.signature)}}</td>
  53. <tr>
  54. {%- endfor %}
  55. <tr>
  56. <th>Recipient Address</th>
  57. <th>Amount</th>
  58. </tr>
  59. {% for target in transaction.targets-%}
  60. <tr>
  61. <td>{{make_short(target.recipient_pk,"address")}}</td>
  62. <td>{{target.amount}}</td>
  63. <tr>
  64. {%- endfor %}
  65. </table>
  66. </div>
  67. <div >