Hide chart for non-main queries

This commit is contained in:
Mark Veidemanis 2022-08-11 23:09:42 +01:00
parent e76c163591
commit 5fd6b887de
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 7 additions and 5 deletions

View File

@ -26,12 +26,14 @@
{% endif %}
{% endif %}
</div>
<div class="box">
<div style="height: 30rem">
<canvas id="volume"></canvas>
{% if params.index == 'main' %}
<div class="box">
<div style="height: 30rem">
<canvas id="volume"></canvas>
</div>
<script src="{% static 'chart.js' %}"></script>
</div>
<script src="{% static 'chart.js' %}"></script>
</div>
{% endif %}
{% include 'ui/drilldown/table_results_partial.html' %}
{% endif %}
{# Update the tags in case the user changed the query #}