mirror of
https://git.wownero.com/lza_menace/wownero-explorer.git
synced 2024-08-15 01:03:26 +00:00
clean up code, add prove sending page and form
This commit is contained in:
parent
8d0709240a
commit
d9b7629931
9 changed files with 139 additions and 30 deletions
|
@ -6,8 +6,8 @@
|
|||
<div class="container">
|
||||
<section id="header">
|
||||
<nav id="nav">
|
||||
<a href="/"><h1>Go Back</h1><br>
|
||||
<img src="//files.lzahq.tech/wow/WOW-Bux-720x435.png" width=300 />
|
||||
<a href="/"><h1>Go Back</h1>
|
||||
<img src="//files.lzahq.tech/wow/WOW-Bux-720x435.png" width=250 />
|
||||
</a>
|
||||
</nav>
|
||||
</section>
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
<div class="container">
|
||||
<section id="header">
|
||||
<nav id="nav">
|
||||
<a href="/"><h1>Go Back</h1><br>
|
||||
<img src="//files.lzahq.tech/wow/Wownero-Mine-Stock-720x500.png" width=300 />
|
||||
<a href="/"><h1>Go Back</h1>
|
||||
<img src="//files.lzahq.tech/wow/Wownero-Mine-Stock-720x500.png" width=250 />
|
||||
</a>
|
||||
</nav>
|
||||
</section>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<section id="header">
|
||||
<h1>Wownero Block Explorer</h1>
|
||||
<nav id="nav">
|
||||
<img src="//files.lzahq.tech/wow/Wownero-Development-Stock-720x440.png"/ width=300>
|
||||
<img src="//files.lzahq.tech/wow/Wownero-Development-Stock-720x440.png"/ width=250>
|
||||
<div class="search">
|
||||
<form action="/search" method="get">
|
||||
<input type="text" name="value" placeholder="Enter a transaction hash, block hash, block height, or wallet address.">
|
||||
|
|
61
templates/receipt.html.tera
Normal file
61
templates/receipt.html.tera
Normal file
|
@ -0,0 +1,61 @@
|
|||
{% extends "base" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<section id="main">
|
||||
<div class="container">
|
||||
<section id="header">
|
||||
<nav id="nav">
|
||||
<a href="/"><h1>Go Home</h1><br />
|
||||
<img src="//files.lzahq.tech/wow/WOW-Stack-720x455.png" width=150 />
|
||||
</a>
|
||||
</nav>
|
||||
</section>
|
||||
<div class="col-12">
|
||||
<section>
|
||||
<header class="major">
|
||||
<h2>Confirm TX Receipt</h2>
|
||||
{% if res %}
|
||||
<p class="subheader"><strong>To Address</strong>: {{ address }}</p>
|
||||
<p class="subheader"><strong>Transaction ID</strong>: {{ tx_hash }}</p>
|
||||
</header>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-4 col-6-medium col-12-small">
|
||||
<section class="box">
|
||||
<header>
|
||||
<h3>Confirmations</h3>
|
||||
</header>
|
||||
<p>{{ res.confirmations }}</p>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-4 col-6-medium col-12-small">
|
||||
<section class="box">
|
||||
<header>
|
||||
<h3>Amount</h3>
|
||||
</header>
|
||||
<p>{{ res.received / 100000000000 }} WOW</p>
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-4 col-6-medium col-12-small">
|
||||
<section class="box">
|
||||
<header>
|
||||
<h3>In Pool</h3>
|
||||
</header>
|
||||
<p>{{ res.in_pool }}</p>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<p class="subheader"><strong>Invalid Confirmation</strong></p>
|
||||
{% endif %}
|
||||
</section>
|
||||
</div>
|
||||
<br><br>
|
||||
<header class="major">
|
||||
<h2><a href="/transaction/{{ tx_hash }}">View Transaction</a></h2>
|
||||
</header>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% endblock content %}
|
|
@ -6,8 +6,8 @@
|
|||
<div class="container">
|
||||
<section id="header">
|
||||
<nav id="nav">
|
||||
<a href="/"><h1>Go Back</h1><br>
|
||||
<img src="//files.lzahq.tech/wow/WOW-Teleporter-720x1180.png" height=220 />
|
||||
<a href="/"><h1>Go Back</h1>
|
||||
<img src="//files.lzahq.tech/wow/WOW-Teleporter-720x1180.png" height=200 />
|
||||
</a>
|
||||
</nav>
|
||||
</section>
|
||||
|
@ -69,8 +69,15 @@
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<br><br>
|
||||
<section>
|
||||
<h1 class="center">Prove Sending</h1>
|
||||
<form method="get" action="/receipt" class="center">
|
||||
<input type="text" name="tx_hash" placeholder="Transaction Hash / ID" value="{{ tx_hash }}" type="hidden" class="hidden">
|
||||
<input type="text" name="address" placeholder="Address">
|
||||
<input type="text" name="tx_key" placeholder="Transaction Key">
|
||||
<input type="submit" value="Prove" class="btn">
|
||||
</form>
|
||||
</section>
|
||||
<div class="tx-table">
|
||||
<table>
|
||||
<caption><h2>Inputs ({{ tx_info.0.as_json_full.vin | length | default(value="?") }})</h2></caption>
|
||||
|
@ -110,4 +117,26 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
.center {
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
padding-bottom: 1em;
|
||||
}
|
||||
input[type=text] {
|
||||
width: 50%;
|
||||
margin: 1em;
|
||||
}
|
||||
input[type=submit] {
|
||||
margin: 1em;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% endblock content %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue