index.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 %}Explorer{% 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;">Explore</h1>
  20. <div class="search-container">
  21. <form action="/search">
  22. <input type="text" placeholder="Search for a block or transaction.." name="search_hash">
  23. </form>
  24. </div>
  25. </div>
  26. <div class="row m-0 border-secondary border-top">
  27. <div class="text-white mb-0 border-bottom border-secondary lead-text" style="width:100%;">
  28. <h2 class="display-8 text-white border-l3" style="font-family:'Weissrundgotisch';line-height:.9em;">Latest Blocks</h2>
  29. <table style="width:100%;">
  30. <tr>
  31. <th>Height</th>
  32. <th>Hash</th>
  33. <th>Timestamp</th>
  34. </tr>
  35. {% for block in blocks %}
  36. <tr>
  37. <td>{{ block[3] }}</td>
  38. <td><a href="block/{{ block[0] }}">{{ block[0] }}</a></td>
  39. <td>{{ block[4] }}</td>
  40. </tr>
  41. {% endfor %}
  42. </table>
  43. </div>
  44. </div>
  45. <div class="row m-0 border-secondary border-top">
  46. <div class="text-white mb-0 border-bottom border-secondary lead-text" style="width:100%;">
  47. <h2 class="display-8 text-white border-l3" style="font-family:'Weissrundgotisch';line-height:.9em;">Statistics</h2>
  48. <ul>
  49. <li>Height: {{ stats[0] }}</li>
  50. <li>Epoch: {{ stats[1] }}</li>
  51. <li>Last block: <a href="block/{{ stats[2] }}">{{ stats[2] }}</a></li>
  52. <li>Total blocks: {{ stats[3] }}</li>
  53. <li>Total transactions: {{ stats[4] }}</li>
  54. </ul>
  55. </div>
  56. </div>
  57. {% endblock %}