Files
darkfi/bin/explorer/site/templates/block.html
2026-01-01 11:40:45 +00:00

61 lines
2.1 KiB
HTML

<!--
This file is part of DarkFi (https://dark.fi)
Copyright (C) 2020-2026 Dyne.org foundation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
{% extends "base.html" %}
{% block title %}Block {{ block[0] }}{% endblock %}
{% block content %}
<div class="content-container">
<!-- Block Details Header -->
<div class="content-header" style="padding-bottom: 8px">
<h2 class="content-section-header">Block Details</h2>
<div class="">{{ block[0] }}</div>
</div>
<!-- Block Details -->
<ul>
<li><strong>Version:</strong> {{ block[1] }}</li>
<li><strong>Previous:</strong> <a href="../block/{{ block[2] }}">{{ block[2] }}</a></li>
<li><strong>Height:</strong> {{ block[3] }}</li>
<li><strong>Timestamp:</strong> {{ block[4] }}</li>
<li><strong>Nonce:</strong> {{ block[5] }}</li>
<li><strong>Transactions Root:</strong> {{ block[6] }}</li>
<li><strong>State Root:</strong> {{ block[7] }}</li>
<li><strong>Proof of Work type:</strong> {{ block[8] }}</li>
<li><strong>Signature:</strong> {{ block[9] }}</li>
</ul>
<!-- Page Content Divider -->
<hr class="content-divider"/>
<!-- Block Transactions -->
<div class="content-section" style="padding-top: 12px">
<h2 class="content-section-header">Block Transactions</h2>
<ul>
{% for transaction in transactions %}
<li><a href="../tx/{{ transaction[0] }}">{{ transaction[0] }}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endblock %}