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.
63 lines
1.9 KiB
HTML
63 lines
1.9 KiB
HTML
<!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>
|
|
<td>{{ op.get_last_payout().create_date | humanize }}</td>
|
|
<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>
|