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.

61 lines
1.8 KiB
HTML

4 years ago
<!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 %}
4 years ago
<table class="table center">
<tr>
<th>Date</th>
<th>Codename</th>
<th>XMR Account</th>
<th>Droplet ID</th>
<th>Volume ID</th>
<th>Balances</th>
</tr>
{% for op in all_ops['active'] | sort(attribute='create_date', reverse=True) %}
4 years ago
{% 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>{{ 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>
4 years ago
{% 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>