display graphs for exchange rates
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
{% block content %}
|
||||
<div class="form-box">
|
||||
<h2>Monitor</h2>
|
||||
<a href="/monitor" class="button button-primary">Refresh</a><br/>
|
||||
<p>Hint: these numbers are not very accurate.</p>
|
||||
|
||||
{% for c in cryptos %}
|
||||
@@ -29,6 +30,7 @@
|
||||
{% if c.bought_tax_free %}
|
||||
We can sell without paying taxes: {{ c.bought_tax_free|floatformat:3 }} {{ c.crypto }} for {{ c.value_tax_free|floatformat:2 }} EUR<br/>
|
||||
{% endif %}
|
||||
<br/><a href="/transactions/show?crypto={{ c.crypto }}">My transactions</a><br/>
|
||||
|
||||
{% if c.rates %}
|
||||
<table>
|
||||
@@ -44,9 +46,55 @@
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
<ul class="tab-nav">
|
||||
<li>
|
||||
<a class="button active" href="#h48{{ c.crypto }}">48 hours</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="button" href="#d3{{ c.crypto }}">3 days</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="button" href="#w1{{ c.crypto }}">1 week</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="button" href="#m1{{ c.crypto }}">1 month</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="button" href="#m6{{ c.crypto }}">6 months</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="button" href="#y1{{ c.crypto }}">1 year</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="h48{{ c.crypto }}">
|
||||
48 hours
|
||||
<img src="/graph?crypto={{ c.crypto }}&fiat=EUR&number_of_hours=48" loading="lazy">
|
||||
</div>
|
||||
<div class="tab-pane" id="d3{{ c.crypto }}">
|
||||
3 days
|
||||
<img src="/graph?crypto={{ c.crypto }}&fiat=EUR&number_of_days=3" loading="lazy">
|
||||
</div>
|
||||
<div class="tab-pane" id="w1{{ c.crypto }}">
|
||||
1 week
|
||||
<img src="/graph?crypto={{ c.crypto }}&fiat=EUR&number_of_days=7" loading="lazy">
|
||||
</div>
|
||||
<div class="tab-pane" id="m1{{ c.crypto }}">
|
||||
1 month
|
||||
<img src="/graph?crypto={{ c.crypto }}&fiat=EUR&number_of_days=30" loading="lazy">
|
||||
</div>
|
||||
<div class="tab-pane" id="m6{{ c.crypto }}">
|
||||
6 months
|
||||
<img src="/graph?crypto={{ c.crypto }}&fiat=EUR&number_of_days=180" loading="lazy">
|
||||
</div>
|
||||
<div class="tab-pane" id="y1{{ c.crypto }}">
|
||||
1 year
|
||||
<img src="/graph?crypto={{ c.crypto }}&fiat=EUR&number_of_days=360" loading="lazy">
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<br/><a href="/transactions/show?crypto={{ c.crypto }}">My transactions</a><br/>
|
||||
<br/>
|
||||
Google: <br/>
|
||||
<a href='https://www.google.com/search?channel=crow2&client=firefox-b-d&q={{ c.crypto }}+in+eur%3D' target='_blank'>{{ c.crypto }} in EUR</a><br/>
|
||||
|
||||
Reference in New Issue
Block a user