nova-web/web/templates/finances.html

46 lines
1.8 KiB
HTML
Raw Normal View History

2023-09-22 01:00:00 +02:00
{% include 'common/begin.html' %}
<main>
<h1>Our finances - transparency is key!</h1>
<p>
2023-09-23 18:06:27 +02:00
<b>Warning</b> - no guarantees can be made that this information is 100% accurate.
2023-09-23 23:17:48 +02:00
Crypto currency prices are being updated once every hour.
2023-09-23 18:06:27 +02:00
<br>
2023-09-23 23:17:48 +02:00
<b>As of: </b> <span id="lastUpdateDisplay">Loading...</span>
2023-09-23 18:06:27 +02:00
<script>
const unix_timestamp = {{ finances.last_update }};
2023-09-23 23:17:48 +02:00
lastUpdateDisplay.innerText = new Date(unix_timestamp * 1000).toLocaleString();
2023-09-23 18:06:27 +02:00
</script>
2023-09-22 01:00:00 +02:00
</p>
<a href="/finances/json" target="_blank">
<button class="special">
<i class="bi bi-file-earmark-arrow-down"></i>
Download entire database
</button>
</a>
<h2>Donations</h2>
2023-09-23 23:17:48 +02:00
<div class="featured__facts box"><p>
We have received <b>{{ finances.donations_num }} donations</b> so far,
totaling <b>{{ finances.donations_total }} USD</b>.
</p></div>
<div class="featured__facts box"><p>
The average donation has an amount of <b>{{ finances.donations_avg }} USD</b>.
Most people used <b>{{ finances.most_used_donation_currency }}</b> to donate.
</p></div>
<div class="featured__facts box"><p>
The largest donation is <b>{{ finances.donations_max }} USD</b>.
</p></div>
2023-09-22 01:00:00 +02:00
<!-- <img src="{{ finances.donations_chart_url }} alt="Donations chart"> -->
<h2>Expenses</h2>
2023-09-22 01:02:10 +02:00
<div class="featured__facts box"><p>We have spent <b>{{ finances.expenses_total }} USD</b>.</p></div>
2023-09-22 01:00:00 +02:00
<div class="featured__facts box"><p>We paid our developers <b>{{ finances.expenses_wages }} USD</b> so far.</p></div>
<div class="featured__facts box"><p>We usually pay in <b>{{ finances.most_used_expense_currency }}</b>.</p></div>
</main>
{% include 'common/end.html' %}