block.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!--
  2. This file is part of DarkFi (https://dark.fi)
  3. Copyright (C) 2020-2024 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="container-fluid pl-5 pb-5 pr-5 title-block" style="margin-top:90px;">
  19. <h1 class="display-4 text-white border-l3" style="font-family:'Weissrundgotisch';line-height:.9em;">Block {{ block[0] }}</h1>
  20. </div>
  21. <div class="row m-0 border-secondary border-top">
  22. <div class="text-white mb-0 border-bottom border-secondary lead-text" style="width:100%;">
  23. <ul>
  24. <li>Version: {{ block[1] }}</li>
  25. <li>Previous: <a href="../block/{{ block[2] }}">{{ block[2] }}</a></li>
  26. <li>Height: {{ block[3] }}</li>
  27. <li>Timestamp: {{ block[4] }}</li>
  28. <li>Nonce: {{ block[5] }}</li>
  29. <li>Root: {{ block[6] }}</li>
  30. <li>Signature: {{ block[7] }}</li>
  31. </ul>
  32. </div>
  33. </div>
  34. <div class="row m-0 border-secondary border-top">
  35. <div class="text-white mb-0 border-bottom border-secondary lead-text" style="width:100%;">
  36. <h2 class="display-8 text-white border-l3" style="font-family:'Weissrundgotisch';line-height:.9em;">Transactions</h2>
  37. <ul>
  38. {% for transaction in transactions %}
  39. <li><a href="../transaction/{{ transaction[0] }}">{{ transaction[0] }}</a></li>
  40. {% endfor %}
  41. </ul>
  42. </div>
  43. </div>
  44. {% endblock %}