update static and templates
parent
098db79da5
commit
5f595d055f
@ -0,0 +1,101 @@
|
|||||||
|
{% extends "base" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<section id="main">
|
||||||
|
<div class="container">
|
||||||
|
<div class="col-12">
|
||||||
|
<section>
|
||||||
|
<header class="major">
|
||||||
|
<h2>Block {{ block_header.height }}</h2>
|
||||||
|
<p class="subheader"><strong>Hash</strong>: {{ block_header.hash }}</p>
|
||||||
|
<p class="subheader"><strong>Timestamp</strong>: {{ block_header.timestamp }}
|
||||||
|
</header>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-4 col-6-medium col-12-small">
|
||||||
|
<section class="box">
|
||||||
|
<header>
|
||||||
|
<h3>Size</h3>
|
||||||
|
</header>
|
||||||
|
<p>{{ block_header.block_size }} bytes</p>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 col-6-medium col-12-small">
|
||||||
|
<section class="box">
|
||||||
|
<header>
|
||||||
|
<h3>Depth</h3>
|
||||||
|
</header>
|
||||||
|
<p>{{ block_header.depth }}</p>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 col-6-medium col-12-small">
|
||||||
|
<section class="box">
|
||||||
|
<header>
|
||||||
|
<h3>Difficulty</h3>
|
||||||
|
</header>
|
||||||
|
<p>{{ block_header.difficulty }}</p>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 col-6-medium col-12-small">
|
||||||
|
<section class="box">
|
||||||
|
<header>
|
||||||
|
<h3>Transactions</h3>
|
||||||
|
</header>
|
||||||
|
<p>{% if tx_hashes %}{{ tx_hashes | length }}{% else %}0{% endif %}</p>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 col-6-medium col-12-small">
|
||||||
|
<section class="box">
|
||||||
|
<header>
|
||||||
|
<h3>Orphaned</h3>
|
||||||
|
</header>
|
||||||
|
<p>{{ block_header.orphan_status }}</p>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 col-6-medium col-12-small">
|
||||||
|
<section class="box">
|
||||||
|
<header>
|
||||||
|
<h3>Nonce</h3>
|
||||||
|
</header>
|
||||||
|
<p>{{ block_header.nonce }}</p>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<br><br>
|
||||||
|
<table>
|
||||||
|
<caption><h2>Block Transactions</h2></caption>
|
||||||
|
<tr>
|
||||||
|
<th>Coinbase</th>
|
||||||
|
<th>Hash</th>
|
||||||
|
<th>Amount</th>
|
||||||
|
<th>Fee</th>
|
||||||
|
<th>Bytes</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>√</td>
|
||||||
|
<td><a href="/transaction/{{ block_header.miner_tx_hash }}">{{ block_header.miner_tx_hash }}</a></td>
|
||||||
|
<td>{{ block_header.reward / 1000000000000 }} XMR</td>
|
||||||
|
<td>0</td>
|
||||||
|
<td>?</td>
|
||||||
|
</tr>
|
||||||
|
{% if tx_hashes %}
|
||||||
|
{% for hash in tx_hashes %}
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td><a href="/transaction/{{ hash }}">{{ hash }}</a></td>
|
||||||
|
<td>?</td>
|
||||||
|
<td>?</td>
|
||||||
|
<td>?</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
</table>
|
||||||
|
<header class="major">
|
||||||
|
<h2><a href="/block/hash/{{ block_header.prev_hash }}">Previous Block</a></h2>
|
||||||
|
</header>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{% endblock content %}
|
@ -1,113 +1,86 @@
|
|||||||
{% extends "base" %}
|
{% extends "base" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="page-wrapper">
|
<section id="main">
|
||||||
<section id="header">
|
<div class="container">
|
||||||
<h1><a href="/">Monero Block Explorer</a></h1>
|
<div class="row">
|
||||||
<nav id="nav">
|
<div class="col-12">
|
||||||
<div class="search">
|
<section>
|
||||||
<form action="/search" method="get">
|
<header class="major">
|
||||||
<input type="text" name="value" placeholder="Enter a transaction hash, block hash, or block height.">
|
<h2>Network Statistics</h2>
|
||||||
<input type="submit" value="Search">
|
</header>
|
||||||
</form>
|
<div class="row">
|
||||||
</div>
|
<div class="col-3 col-6-medium col-12-small">
|
||||||
</nav>
|
<section class="box">
|
||||||
</section>
|
<header>
|
||||||
<section id="main">
|
<h3>Version</h3>
|
||||||
<div class="container">
|
</header>
|
||||||
<div class="row">
|
<p>{{ version }}</p>
|
||||||
<div class="col-12">
|
</section>
|
||||||
<section>
|
</div>
|
||||||
<header class="major">
|
<div class="col-3 col-6-medium col-12-small">
|
||||||
<h2>Network Stats</h2>
|
<section class="box">
|
||||||
</header>
|
<header>
|
||||||
<div class="row">
|
<h3>Difficulty</h3>
|
||||||
<div class="col-3 col-6-medium col-12-small">
|
</header>
|
||||||
<section class="box">
|
<p>{{ difficulty }}</p>
|
||||||
<header>
|
</section>
|
||||||
<h3>Version</h3>
|
</div>
|
||||||
</header>
|
<div class="col-3 col-6-medium col-12-small">
|
||||||
<p>{{ version }}</p>
|
<section class="box">
|
||||||
</section>
|
<header>
|
||||||
</div>
|
<h3>Height</h3>
|
||||||
<div class="col-3 col-6-medium col-12-small">
|
</header>
|
||||||
<section class="box">
|
<p>{{ height }}</p>
|
||||||
<header>
|
</section>
|
||||||
<h3>Difficulty</h3>
|
</div>
|
||||||
</header>
|
<div class="col-3 col-6-medium col-12-small">
|
||||||
<p>{{ difficulty }}</p>
|
<section class="box">
|
||||||
</section>
|
<header>
|
||||||
</div>
|
<h3>Network</h3>
|
||||||
<div class="col-3 col-6-medium col-12-small">
|
</header>
|
||||||
<section class="box">
|
<p>{{ nettype }}</p>
|
||||||
<header>
|
</section>
|
||||||
<h3>Height</h3>
|
</div>
|
||||||
</header>
|
</div>
|
||||||
<p>{{ height }}</p>
|
<div class="row">
|
||||||
</section>
|
<div class="col-3 col-6-medium col-12-small">
|
||||||
</div>
|
<section class="box">
|
||||||
<div class="col-3 col-6-medium col-12-small">
|
<header>
|
||||||
<section class="box">
|
<h3>Transactions</h3>
|
||||||
<header>
|
</header>
|
||||||
<h3>Network</h3>
|
<p>{{ tx_count }}</p>
|
||||||
</header>
|
</section>
|
||||||
<p>{{ nettype }}</p>
|
</div>
|
||||||
</section>
|
<div class="col-3 col-6-medium col-12-small">
|
||||||
</div>
|
<section class="box">
|
||||||
</div>
|
<header>
|
||||||
<div class="row">
|
<h3>Mempool Size</h3>
|
||||||
<div class="col-3 col-6-medium col-12-small">
|
</header>
|
||||||
<section class="box">
|
<p>{{ tx_pool_size }}</p>
|
||||||
<header>
|
</section>
|
||||||
<h3>Transactions</h3>
|
</div>
|
||||||
</header>
|
<div class="col-3 col-6-medium col-12-small">
|
||||||
<p>{{ tx_count }}</p>
|
<section class="box">
|
||||||
</section>
|
<header>
|
||||||
</div>
|
<h3>Connections</h3>
|
||||||
<div class="col-3 col-6-medium col-12-small">
|
</header>
|
||||||
<section class="box">
|
<p>{{ incoming_connections_count }} in / {{ outgoing_connections_count }} out</p>
|
||||||
<header>
|
</section>
|
||||||
<h3>Mempool Size</h3>
|
</div>
|
||||||
</header>
|
<div class="col-3 col-6-medium col-12-small">
|
||||||
<p>{{ tx_pool_size }}</p>
|
<section class="box">
|
||||||
</section>
|
<header>
|
||||||
</div>
|
<h3>Status</h3>
|
||||||
<div class="col-3 col-6-medium col-12-small">
|
</header>
|
||||||
<section class="box">
|
<p>{{ status }}</p>
|
||||||
<header>
|
</section>
|
||||||
<h3>Connections</h3>
|
|
||||||
</header>
|
|
||||||
<p>{{ incoming_connections_count }} in / {{ outgoing_connections_count }} out</p>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
<div class="col-3 col-6-medium col-12-small">
|
|
||||||
<section class="box">
|
|
||||||
<header>
|
|
||||||
<h3>Status</h3>
|
|
||||||
</header>
|
|
||||||
<p>{{ status }}</p>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
<section id="footer">
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-12">
|
|
||||||
<div id="copyright">
|
|
||||||
<ul class="links">
|
|
||||||
<li>Design: <a href="https://html5up.net" target=_blank>HTML5 UP</a></li>
|
|
||||||
<li>Source: <a href="https://github.com/lalanza808/monero-block-explorer" target=_blank>Github</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
Loading…
Reference in New Issue