Add travis build status to readme.

Move templates dir.
Add version to index.
Remove bitcoin config from docker json config - extra coins can be enabled with
prepare -addcoin.
This commit is contained in:
tecnovert
2019-07-26 12:07:25 +02:00
parent 267ff02d3f
commit 1ce87bb58d
9 changed files with 11 additions and 14 deletions

View File

@@ -0,0 +1,16 @@
{% include 'header.html' %}
<h3>Active Swaps</h3>
{% if refresh %}
<p>Page Refresh: {{ refresh }} seconds</p>
{% endif %}
<table>
<tr><th>Bid ID</th><th>Offer ID</th><th>Bid Status</th></tr>
{% for s in active_swaps %}
<tr><td><a href=/bid/{{ s[0] }}>{{ s[0] }}</a></td><td><a href=/offer/{{ s[1] }}>{{ s[1] }}</a></td><td>{{ s[2] }}</td></tr>
{% endfor %}
</table>
<p><a href="/">home</a></p>
</body></html>

View File

@@ -0,0 +1,6 @@
{% include 'header.html' %}
<h3>Advance Bid {{ bid_id }}</h3>
<p><a href="/">home</a></p>
</body></html>

View File

@@ -0,0 +1,12 @@
<!DOCTYPE html><html lang="en">
<head>
<meta charset="UTF-8">
{% if refresh %}
<meta http-equiv="refresh" content="{{ refresh }}">
{% endif %}
<title>{{ title }}</title>
</head>
<body>
{% if h2 %}
<h2>{{ h2 }}</h2>
{% endif %}

View File

@@ -0,0 +1,23 @@
{% include 'header.html' %}
<p><a href="/wallets">View Wallets</a></p>
<p>
{% if refresh %}
Page Refresh: {{ refresh }} seconds<br/>
{% endif %}
Version: {{ version }}
</p>
<p>
<a href="/active">Swaps in progress: {{ summary.num_swapping }}</a><br/>
<a href="/offers">Network Offers: {{ summary.num_network_offers }}</a><br/>
<a href="/sentoffers">Sent Offers: {{ summary.num_sent_offers }}</a><br/>
<a href="/bids">Received Bids: {{ summary.num_recv_bids }}</a><br/>
<a href="/sentbids">Sent Bids: {{ summary.num_sent_bids }}</a><br/>
<a href="/watched">Watched Outputs: {{ summary.num_watched_outputs }}</a><br/>
</p>
<p><a href="/newoffer">New Offer</a><br/></p>
</body>
</html>

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>