|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
{% include 'includes/head.html' %}
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
{% include 'includes/header.html' %}
|
|
|
|
|
|
|
|
<section class="hero is-dark">
|
|
|
|
<div class="hero-body">
|
|
|
|
<div class="container center">
|
|
|
|
{% if token %}
|
|
|
|
<h1>Paid Ops</h1>
|
|
|
|
<br />
|
|
|
|
{% if all_ops %}
|
|
|
|
<table class="table center">
|
|
|
|
<tr>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Codename</th>
|
|
|
|
<th>XMR Account</th>
|
|
|
|
<th>Droplet ID</th>
|
|
|
|
<th>Volume ID</th>
|
|
|
|
<th>Last Payout</th>
|
|
|
|
<th>Balances</th>
|
|
|
|
</tr>
|
|
|
|
{% for op in all_ops['active'] | sort(attribute='create_date', reverse=True) %}
|
|
|
|
{% set balances = op.get_balances() %}
|
|
|
|
{% set unlocked = balances['unlocked'] | from_atomic_xmr %}
|
|
|
|
{% set locked = (balances['balance'] - balances['unlocked']) | from_atomic_xmr %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ op.create_date }}</td>
|
|
|
|
<td><a href="{{ url_for('operation.view_operation', id=op.id) }}" target="_blank">{{ op.codename }}</a></td>
|
|
|
|
<td>{{ op.account_idx }}</td>
|
|
|
|
<td>{{ op.droplet_id }}</td>
|
|
|
|
<td>{{ op.volume_id }}</td>
|
|
|
|
{% if op.get_last_payout() %}
|
|
|
|
<td>{{ op.get_last_payout().create_date | humanize }}</td>
|
|
|
|
{% else %}
|
|
|
|
<td>None</td>
|
|
|
|
{% endif %}
|
|
|
|
<td>{{ unlocked }} XMR ({{ locked }} locked)</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<h1>Unpaid Ops</h1>
|
|
|
|
<ul>
|
|
|
|
{% for op in all_ops['inactive'] %}
|
|
|
|
<li>{{ op.create_date }} - <a class="is-link" href="{{ url_for('operation.view_operation', id=op.id) }}">{{ op.id }}</a> - {{ op.codename }} - {{ op.account_idx }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
<h1>Stats</h1>
|
|
|
|
<p>You're not supposed to be here.</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{% include 'includes/footer.html' %}
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|