Reformat and fix panel inclusion

This commit is contained in:
2022-08-28 13:11:30 +01:00
parent d9234de7ab
commit 3050b96baa
6 changed files with 124 additions and 148 deletions

View File

@@ -5,53 +5,42 @@
{% if table %}
<script src="{% static 'js/column-shifter.js' %}"></script>
<div style="display: none" id="jsonData" data-json="{{ data }}">
</div>
<div class="panel">
<p class="panel-heading" style="padding: .2em; line-height: .5em;">
<i
class="fa-solid fa-arrows-up-down-left-right has-text-grey-light ui-move"></i>
<div class="has-text-grey-light nowrap-parent">
<div class="nowrap-child block">
<span class="icon" data-tooltip="{{ card }} hits total">
<span class="icon has-tooltip-bottom" data-tooltip="{{ card }} hits total">
<i class="fa-solid fa-chart-mixed"></i>
</span>
</div>
<div class="nowrap-child">
<p>{{ table.data|length }} hits in {{ took }}ms</p>
</div>
{% if exemption is not None %}
<div class="nowrap-child">
<span class="icon" data-tooltip="God mode">
{{ table.data|length }} hits in {{ took }}ms
{% if exemption is not None %}
<span class="icon has-tooltip-bottom" data-tooltip="God mode">
<i class="fa-solid fa-book-bible"></i>
</span>
</div>
{% else %}
{% if redacted != 0 %}
<div class="nowrap-child">
<span class="icon" data-tooltip="{{ redacted }} redacted">
{% else %}
{% if redacted != 0 %}
<span class="icon has-tooltip-bottom" data-tooltip="{{ redacted }} redacted">
<i class="fa-solid fa-mask"></i>
</span>
</div>
{% endif %}
{% endif %}
{% endif %}
{% if delay is not None %}
<div class="nowrap-child">
<span class="icon" data-tooltip="delayed by {{ delay }} days">
{% if delay is not None %}
<span class="icon has-tooltip-bottom" data-tooltip="delayed by {{ delay }} days">
<i class="fa-solid fa-clock"></i>
</span>
</div>
{% endif %}
{% if randomised is True %}
<div class="nowrap-child">
<span class="icon" data-tooltip="integer fields randomised">
{% endif %}
{% if randomised is True %}
<span class="icon has-tooltip-bottom" data-tooltip="integer fields randomised">
<i class="fa-solid fa-shuffle"></i>
</span>
{% endif %}
</p>
<div class="panel-block is-active">
<div class="control">
{% include 'ui/drilldown/table_results_partial.html' %}
</div>
{% endif %}
</div>
{% if params.index != 'int' and params.index != 'meta' %}
<div style="height: 30rem" id="sentiment-container" {% if params.show_sentiment is None %} class="is-hidden" {% endif %}>
<canvas id="sentiment-chart"></canvas>
</div>
<script src="{% static 'chart.js' %}"></script>
{% endif %}
{% include 'ui/drilldown/table_results_partial.html' %}
</div>
{% endif %}