html: Template for watched outputs page.

This commit is contained in:
tecnovert
2019-07-25 23:15:35 +02:00
parent b920f926c1
commit 8623d291f1
4 changed files with 45 additions and 18 deletions

25
templates/watched.html Normal file
View File

@@ -0,0 +1,25 @@
{% include 'header.html' %}
<h3>Watched Outputs</h3>
{% if refresh %}
<p>Page Refresh: {{ refresh }} seconds</p>
{% endif %}
<p>Last Scanned</p>
<table>
<tr><th>Coin</th><th>height</th></tr>
{% for ls in last_scanned %}
<tr><td>{{ ls[0] }}</td><td>{{ ls[1] }}</td></tr>
{% endfor %}
</table>
<br/>
<table>
<tr><th>Bid ID</th><th>Chain</th><th>Txid</th><th>Index</th><th>Type</th></tr>
{% for wo in watched_outputs %}
<tr><td><a href=/bid/{{ wo[0] }}>{{ wo[0] }}</a></td><td>{{ wo[1] }}</td><td>{{ wo[2] }}</td><td>{{ wo[3] }}</td><td>{{ wo[4] }}</td></tr>
{% endfor %}
</table>
<p><a href="/">home</a></p>
</body></html>