You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{% extends 'includes/base.html' %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>LWS Web Admin</h1>
|
|
|
|
<p>LWS Admin: {{ config.LWS_ADMIN_URL }}</p>
|
|
|
|
<p>LWS RPC: {{ config.LWS_URL }}</p>
|
|
|
|
<h3>Accounts</h3>
|
|
|
|
<a href="/wallet/add" class="button outline primary">Add Wallet</a>
|
|
|
|
<table class="striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Status</th>
|
|
|
|
<th>Wallet</th>
|
|
|
|
<th>Address</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Height</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for address in data %}
|
|
|
|
{% set _data = data[address] %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<button class="button {% if _data['status'] == 'active' %}success{% else %}error{% endif %}">
|
|
|
|
{{ _data['status'] | upper }}
|
|
|
|
</button>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if _data['wallet'] %}
|
|
|
|
<a href="/wallet/{{ data[address]['wallet'].id }}">{{ data[address]['wallet'].name }}</a>
|
|
|
|
{% else %}
|
|
|
|
<a href="/wallet/add?address={{ address }}">add</a>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>{{ address | shorten }}</td>
|
|
|
|
<td>
|
|
|
|
{% if _data['wallet'] %}
|
|
|
|
{{ _data['wallet'].description or "-" }}
|
|
|
|
{% else %}
|
|
|
|
-
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>{{ data[address]['scan_height'] }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endblock %}
|