Reformat and fix panel inclusion
This commit is contained in:
parent
d9234de7ab
commit
3050b96baa
File diff suppressed because one or more lines are too long
|
@ -111,35 +111,6 @@
|
||||||
.rounded-tooltip:hover .tooltiptext {
|
.rounded-tooltip:hover .tooltiptext {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
.ui-move {
|
|
||||||
background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDUxMS42MjYgNTExLjYyNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTExLjYyNiA1MTEuNjI3OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggZD0iTTMyOC45MDYsNDAxLjk5NGgtMzYuNTUzVjEwOS42MzZoMzYuNTUzYzQuOTQ4LDAsOS4yMzYtMS44MDksMTIuODQ3LTUuNDI2YzMuNjEzLTMuNjE1LDUuNDIxLTcuODk4LDUuNDIxLTEyLjg0NSAgIGMwLTQuOTQ5LTEuODAxLTkuMj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
||||||
bottom: 10px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
color: rgb(74, 74, 74);
|
|
||||||
cursor: se-resize;
|
|
||||||
display: none;
|
|
||||||
filter: none;
|
|
||||||
font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
||||||
font-size: 0.1px;
|
|
||||||
font-weight: 400;
|
|
||||||
height: 20px;
|
|
||||||
line-height: 0.15px;
|
|
||||||
position: absolute;
|
|
||||||
left: 10px;
|
|
||||||
text-rendering: optimizelegibility;
|
|
||||||
touch-action: none;
|
|
||||||
transform: matrix(0.707107, -0.707107, 0.707107, 0.707107, 0, 0);
|
|
||||||
user-select: none;
|
|
||||||
width: 20px;
|
|
||||||
z-index: 100
|
|
||||||
}
|
|
||||||
.grid-stack-item-content:hover .ui-move {
|
|
||||||
display: block;
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -53,50 +53,42 @@
|
||||||
htmx.trigger("#search", "click");
|
htmx.trigger("#search", "click");
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="grid-stack">
|
<div class="grid-stack">
|
||||||
<div class="grid-stack-item" gs-w="7" gs-h="10" gs-y="0" gs-x="1">
|
<div class="grid-stack-item" gs-w="7" gs-h="10" gs-y="0" gs-x="1">
|
||||||
<div class="grid-stack-item-content">
|
<div class="grid-stack-item-content">
|
||||||
<nav class="panel">
|
<nav class="panel">
|
||||||
<p class="panel-heading" style="padding: .2em; line-height: .5em;">
|
<p class="panel-heading" style="padding: .2em; line-height: .5em;">
|
||||||
<i class="fa-solid fa-arrows-up-down-left-right has-text-grey-light"></i>
|
<i class="fa-solid fa-arrows-up-down-left-right has-text-grey-light"></i>
|
||||||
Search
|
Search
|
||||||
</p>
|
</p>
|
||||||
<article class="panel-block is-active">
|
<article class="panel-block is-active">
|
||||||
{% include 'ui/drilldown/search_partial.html' %}
|
{% include 'ui/drilldown/search_partial.html' %}
|
||||||
</article>
|
</article>
|
||||||
</nav>
|
</nav>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid-stack-item" gs-w="10" gs-h="40" gs-y="10" gs-x="1">
|
<div class="grid-stack-item" gs-w="10" gs-h="40" gs-y="10" gs-x="1">
|
||||||
<div class="grid-stack-item-content">
|
<div class="grid-stack-item-content">
|
||||||
|
<div id="results">
|
||||||
<nav class="panel">
|
{% include 'ui/drilldown/table_results.html' %}
|
||||||
<p class="panel-heading" style="padding: .2em; line-height: .5em;">
|
</div>
|
||||||
<i class="fa-solid fa-arrows-up-down-left-right has-text-grey-light"></i>
|
|
||||||
Results
|
|
||||||
</p>
|
|
||||||
<div class="panel-block is-active">
|
|
||||||
<div class="control">
|
|
||||||
<div id="results">
|
|
||||||
{% include 'ui/drilldown/table_results.html' %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="modals-here">
|
<div id="modals-here">
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
setupTags();
|
|
||||||
var grid = GridStack.init({
|
var grid = GridStack.init({
|
||||||
cellHeight: 20,
|
cellHeight: 20,
|
||||||
// cellWidth: 50,
|
cellWidth: 50,
|
||||||
auto: true,
|
auto: true,
|
||||||
float: true,
|
float: true,
|
||||||
draggable: {handle: '.panel-heading', scroll: false, appendTo: 'body'},
|
draggable: {handle: '.panel-heading', scroll: false, appendTo: 'body'},
|
||||||
removable: false,
|
removable: false,
|
||||||
});
|
});
|
||||||
|
// GridStack.init();
|
||||||
|
setupTags();
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{% endblock outer_content %}
|
{% endblock %}
|
||||||
|
|
|
@ -183,61 +183,65 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<label class="radio button has-text-link">
|
<label class="radio button has-text-link">
|
||||||
<input type="radio"
|
<input
|
||||||
value="below"
|
type="radio"
|
||||||
class="sentiment-radio"
|
value="below"
|
||||||
{% if params.sentiment_method == 'below' %}
|
class="sentiment-radio"
|
||||||
checked
|
{% if params.sentiment_method == 'below' %}
|
||||||
{% endif %}
|
checked
|
||||||
name="sentiment_method"
|
{% endif %}
|
||||||
{% if params.check_sentiment != "on" %}
|
name="sentiment_method"
|
||||||
disabled
|
{% if params.check_sentiment != "on" %}
|
||||||
{% endif %}>
|
disabled
|
||||||
|
{% endif %}>
|
||||||
<span class="icon" data-tooltip="Below">
|
<span class="icon" data-tooltip="Below">
|
||||||
<i class="fa-solid fa-face-frown"></i>
|
<i class="fa-solid fa-face-frown"></i>
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="radio button has-text-link is-hidden">
|
<label class="radio button has-text-link is-hidden">
|
||||||
<input type="radio"
|
<input
|
||||||
value="exact"
|
type="radio"
|
||||||
class="sentiment-radio"
|
value="exact"
|
||||||
{% if params.sentiment_method == 'exact' %}
|
class="sentiment-radio"
|
||||||
checked
|
{% if params.sentiment_method == 'exact' %}
|
||||||
{% endif %}
|
checked
|
||||||
name="sentiment_method"
|
{% endif %}
|
||||||
{% if params.check_sentiment != "on" %}
|
name="sentiment_method"
|
||||||
disabled
|
{% if params.check_sentiment != "on" %}
|
||||||
{% endif %}>
|
disabled
|
||||||
|
{% endif %}>
|
||||||
<span class="icon" data-tooltip="Exact">
|
<span class="icon" data-tooltip="Exact">
|
||||||
<i class="fa-solid fa-face-smile"></i>
|
<i class="fa-solid fa-face-smile"></i>
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="radio button has-text-link">
|
<label class="radio button has-text-link">
|
||||||
<input type="radio"
|
<input
|
||||||
value="above"
|
type="radio"
|
||||||
class="sentiment-radio"
|
value="above"
|
||||||
{% if params.sentiment_method == 'above' %}
|
class="sentiment-radio"
|
||||||
checked
|
{% if params.sentiment_method == 'above' %}
|
||||||
{% endif %}
|
checked
|
||||||
name="sentiment_method"
|
{% endif %}
|
||||||
{% if params.check_sentiment != "on" %}
|
name="sentiment_method"
|
||||||
disabled
|
{% if params.check_sentiment != "on" %}
|
||||||
{% endif %}>
|
disabled
|
||||||
|
{% endif %}>
|
||||||
<span class="icon" data-tooltip="Above">
|
<span class="icon" data-tooltip="Above">
|
||||||
<i class="fa-solid fa-face-smile"></i>
|
<i class="fa-solid fa-face-smile"></i>
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="radio button has-text-link">
|
<label class="radio button has-text-link">
|
||||||
<input type="radio"
|
<input
|
||||||
value="nonzero"
|
type="radio"
|
||||||
class="sentiment-radio"
|
value="nonzero"
|
||||||
{% if params.sentiment_method == 'nonzero' %}
|
class="sentiment-radio"
|
||||||
checked
|
{% if params.sentiment_method == 'nonzero' %}
|
||||||
{% endif %}
|
checked
|
||||||
name="sentiment_method"
|
{% endif %}
|
||||||
{% if params.check_sentiment != "on" %}
|
name="sentiment_method"
|
||||||
disabled
|
{% if params.check_sentiment != "on" %}
|
||||||
{% endif %}>
|
disabled
|
||||||
|
{% endif %}>
|
||||||
<span class="icon" data-tooltip="Nonzero">
|
<span class="icon" data-tooltip="Nonzero">
|
||||||
<i class="fa-solid fa-face-meh-blank"></i>
|
<i class="fa-solid fa-face-meh-blank"></i>
|
||||||
</span>
|
</span>
|
||||||
|
@ -311,31 +315,39 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<label class="radio button has-text-link">
|
<label class="radio button has-text-link">
|
||||||
<input type="radio" value="desc" name="sorting"
|
<input
|
||||||
{% if params.sorting == None %}
|
type="radio"
|
||||||
checked
|
value="desc"
|
||||||
{% elif params.sorting == 'desc' %}
|
name="sorting"
|
||||||
checked
|
{% if params.sorting == None %}
|
||||||
{% endif %}
|
checked
|
||||||
>
|
{% elif params.sorting == 'desc' %}
|
||||||
|
checked
|
||||||
|
{% endif %}>
|
||||||
<span class="icon" data-tooltip="Sort descending">
|
<span class="icon" data-tooltip="Sort descending">
|
||||||
<i class="fa-solid fa-sort-down"></i>
|
<i class="fa-solid fa-sort-down"></i>
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="radio button">
|
<label class="radio button">
|
||||||
<input type="radio" value="asc" name="sorting"
|
<input
|
||||||
{% if params.sorting == 'asc' %}
|
type="radio"
|
||||||
checked
|
value="asc"
|
||||||
{% endif %}>
|
name="sorting"
|
||||||
|
{% if params.sorting == 'asc' %}
|
||||||
|
checked
|
||||||
|
{% endif %}>
|
||||||
<span class="icon" data-tooltip="Sort ascending">
|
<span class="icon" data-tooltip="Sort ascending">
|
||||||
<i class="fa-solid fa-sort-up"></i>
|
<i class="fa-solid fa-sort-up"></i>
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="radio button">
|
<label class="radio button">
|
||||||
<input type="radio" value="none" name="sorting"
|
<input
|
||||||
{% if params.sorting == 'none' %}
|
type="radio"
|
||||||
checked
|
value="none"
|
||||||
{% endif %}>
|
name="sorting"
|
||||||
|
{% if params.sorting == 'none' %}
|
||||||
|
checked
|
||||||
|
{% endif %}>
|
||||||
<span class="icon" data-tooltip="No sort">
|
<span class="icon" data-tooltip="No sort">
|
||||||
<i class="fa-solid fa-sort"></i>
|
<i class="fa-solid fa-sort"></i>
|
||||||
</span>
|
</span>
|
||||||
|
@ -417,5 +429,4 @@
|
||||||
value="{{ params.tags }}">
|
value="{{ params.tags }}">
|
||||||
</div>
|
</div>
|
||||||
<div class="is-hidden"></div>
|
<div class="is-hidden"></div>
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
<div style="display: none" id="jsonData" data-json="{{ data }}">
|
||||||
|
</div>
|
||||||
|
<div class="grid-stack-item" gs-w="10" gs-h="40" gs-y="10" gs-x="1">
|
||||||
|
<div class="grid-stack-item-content">
|
||||||
|
{% 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 %}
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -5,53 +5,42 @@
|
||||||
|
|
||||||
{% if table %}
|
{% if table %}
|
||||||
<script src="{% static 'js/column-shifter.js' %}"></script>
|
<script src="{% static 'js/column-shifter.js' %}"></script>
|
||||||
<div style="display: none" id="jsonData" data-json="{{ data }}">
|
<div class="panel">
|
||||||
</div>
|
<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">
|
<span class="icon has-tooltip-bottom" data-tooltip="{{ card }} hits total">
|
||||||
<div class="nowrap-child block">
|
|
||||||
<span class="icon" data-tooltip="{{ card }} hits total">
|
|
||||||
<i class="fa-solid fa-chart-mixed"></i>
|
<i class="fa-solid fa-chart-mixed"></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
|
||||||
<div class="nowrap-child">
|
{{ table.data|length }} hits in {{ took }}ms
|
||||||
<p>{{ table.data|length }} hits in {{ took }}ms</p>
|
{% if exemption is not None %}
|
||||||
</div>
|
<span class="icon has-tooltip-bottom" data-tooltip="God mode">
|
||||||
{% if exemption is not None %}
|
|
||||||
<div class="nowrap-child">
|
|
||||||
<span class="icon" data-tooltip="God mode">
|
|
||||||
<i class="fa-solid fa-book-bible"></i>
|
<i class="fa-solid fa-book-bible"></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
{% else %}
|
||||||
{% else %}
|
{% if redacted != 0 %}
|
||||||
{% if redacted != 0 %}
|
<span class="icon has-tooltip-bottom" data-tooltip="{{ redacted }} redacted">
|
||||||
<div class="nowrap-child">
|
|
||||||
<span class="icon" data-tooltip="{{ redacted }} redacted">
|
|
||||||
<i class="fa-solid fa-mask"></i>
|
<i class="fa-solid fa-mask"></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% if delay is not None %}
|
||||||
{% if delay is not None %}
|
<span class="icon has-tooltip-bottom" data-tooltip="delayed by {{ delay }} days">
|
||||||
<div class="nowrap-child">
|
|
||||||
<span class="icon" data-tooltip="delayed by {{ delay }} days">
|
|
||||||
<i class="fa-solid fa-clock"></i>
|
<i class="fa-solid fa-clock"></i>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
{% endif %}
|
||||||
{% endif %}
|
{% if randomised is True %}
|
||||||
{% if randomised is True %}
|
<span class="icon has-tooltip-bottom" data-tooltip="integer fields randomised">
|
||||||
<div class="nowrap-child">
|
|
||||||
<span class="icon" data-tooltip="integer fields randomised">
|
|
||||||
<i class="fa-solid fa-shuffle"></i>
|
<i class="fa-solid fa-shuffle"></i>
|
||||||
</span>
|
</span>
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
|
<div class="panel-block is-active">
|
||||||
|
<div class="control">
|
||||||
|
{% include 'ui/drilldown/table_results_partial.html' %}
|
||||||
</div>
|
</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>
|
</div>
|
||||||
<script src="{% static 'chart.js' %}"></script>
|
</div>
|
||||||
{% endif %}
|
|
||||||
{% include 'ui/drilldown/table_results_partial.html' %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue