Files
darkfi/script/research/blockchain-explorer/site/templates/block.html

56 lines
2.2 KiB
HTML

<!--
This file is part of DarkFi (https://dark.fi)
Copyright (C) 2020-2024 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="container-fluid pl-5 pb-5 pr-5 title-block" style="margin-top:90px;">
<h1 class="display-4 text-white border-l3" style="font-family:'Weissrundgotisch';line-height:.9em;">Block {{ block[0] }}</h1>
</div>
<div class="row m-0 border-secondary border-top">
<div class="text-white mb-0 border-bottom border-secondary lead-text" style="width:100%;">
<ul>
<li>Version: {{ block[1] }}</li>
<li>Previous: <a href="../block/{{ block[2] }}">{{ block[2] }}</a></li>
<li>Height: {{ block[3] }}</li>
<li>Timestamp: {{ block[4] }}</li>
<li>Nonce: {{ block[5] }}</li>
<li>Root: {{ block[6] }}</li>
<li>Signature: {{ block[7] }}</li>
</ul>
</div>
</div>
<div class="row m-0 border-secondary border-top">
<div class="text-white mb-0 border-bottom border-secondary lead-text" style="width:100%;">
<h2 class="display-8 text-white border-l3" style="font-family:'Weissrundgotisch';line-height:.9em;">Transactions</h2>
<ul>
{% for transaction in transactions %}
<li><a href="../transaction/{{ transaction[0] }}">{{ transaction[0] }}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endblock %}