block.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!--
  2. This file is part of DarkFi (https://dark.fi)
  3. Copyright (C) 2020-2025 Dyne.org foundation
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as
  6. published by the Free Software Foundation, either version 3 of the
  7. License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <https://www.gnu.org/licenses/>.
  14. -->
  15. {% extends "base.html" %}
  16. {% block title %}Block {{ block[0] }}{% endblock %}
  17. {% block content %}
  18. <div class="content-container">
  19. <!-- Block Details Header -->
  20. <div class="content-header" style="padding-bottom: 8px">
  21. <h2 class="content-section-header">Block Details</h2>
  22. <div class="">{{ block[0] }}</div>
  23. </div>
  24. <!-- Block Details -->
  25. <ul>
  26. <li><strong>Version:</strong> {{ block[1] }}</li>
  27. <li><strong>Previous:</strong> <a href="../block/{{ block[2] }}">{{ block[2] }}</a></li>
  28. <li><strong>Height:</strong> {{ block[3] }}</li>
  29. <li><strong>Timestamp:</strong> {{ block[4] }}</li>
  30. <li><strong>Nonce:</strong> {{ block[5] }}</li>
  31. <li><strong>Root:</strong> {{ block[6] }}</li>
  32. <li><strong>Signature:</strong> {{ block[7] }}</li>
  33. </ul>
  34. <!-- Page Content Divider -->
  35. <hr class="content-divider"/>
  36. <!-- Block Transactions -->
  37. <div class="content-section" style="padding-top: 12px">
  38. <h2 class="content-section-header">Block Transactions</h2>
  39. <ul>
  40. {% for transaction in transactions %}
  41. <li><a href="../tx/{{ transaction[0] }}">{{ transaction[0] }}</a></li>
  42. {% endfor %}
  43. </ul>
  44. </div>
  45. </div>
  46. {% endblock %}