neptune/core/templates/ui/drilldown.html

147 lines
4.1 KiB
HTML
Raw Normal View History

2022-07-21 12:45:28 +00:00
{% extends "base.html" %}
{% load static %}
2022-07-21 12:45:28 +00:00
{% block content %}
2022-07-21 12:49:11 +00:00
2022-07-21 12:49:01 +00:00
<div class="block">
<form method="POST">
2022-07-21 12:49:11 +00:00
{% csrf_token %}
<div class="field is-horizontal">
<div class="field-label is-normal">
<label class="label">Search</label>
2022-07-21 12:49:01 +00:00
</div>
2022-07-21 12:49:11 +00:00
<div class="field-body">
<div class="field">
<div class="control is-expanded has-icons-left">
<input name="query" class="input" type="text" placeholder="Query">
<span class="icon is-small is-left">
<i class="fas fa-magnifying-glass"></i>
</span>
</div>
</div>
2022-07-21 12:49:01 +00:00
</div>
2022-07-21 12:49:11 +00:00
</div>
<div class="field is-horizontal">
<div class="field-label is-normal">
<label class="label">Timescale</label>
</div>
2022-07-21 12:49:01 +00:00
<div class="field-body">
2022-07-21 12:49:11 +00:00
<div class="field">
<div class="control is-expanded has-icons-left">
2022-07-21 12:49:01 +00:00
<div class="select is-fullwidth">
2022-07-21 12:49:11 +00:00
<select name="timescale">
<option value="minute">Minute</option>
<option value="hour">Hour</option>
<option value="day">Day</option>
<option value="week">Week</option>
<option value="month">Month</option>
<option value="6months">6 months</option>
2022-07-21 12:49:01 +00:00
</select>
2022-07-21 12:49:11 +00:00
<span class="icon is-small is-left">
<i class="fas fa-magnifying-glass"></i>
</span>
2022-07-21 12:49:01 +00:00
</div>
</div>
2022-07-21 12:49:11 +00:00
2022-07-21 12:49:01 +00:00
</div>
2022-07-21 12:49:11 +00:00
<div class="field-label is-normal">
<label class="label">Fields</label>
2022-07-21 12:49:01 +00:00
</div>
2022-07-21 12:49:11 +00:00
<div class="field">
<div class="control is-expanded has-icons-left">
<div class="select is-fullwidth is-multiple">
<select multiple name="fields">
{% for field in fields %}
<option value="{{ field }}">{{ field }}</option>
{% endfor %}
</select>
<span class="icon is-small is-left">
<i class="fas fa-magnifying-glass"></i>
</span>
</div>
2022-07-21 12:47:31 +00:00
</div>
2022-07-21 12:49:01 +00:00
</div>
2022-07-21 12:49:11 +00:00
<div class="field-label is-normal">
<label class="label">Results</label>
</div>
<div class="field">
<div class="control is-expanded has-icons-left">
<div class="select is-fullwidth">
<select name="results">
<option value="5">5</option>
<option value="10">10</option>
<option value="15">15</option>
<option value="20">20</option>
</select>
<span class="icon is-small is-left">
<i class="fas fa-magnifying-glass"></i>
</span>
</div>
</div>
</div>
2022-07-21 12:49:01 +00:00
</div>
2022-07-21 12:49:11 +00:00
2022-07-21 12:49:01 +00:00
</div>
2022-07-21 12:49:11 +00:00
<div class="field is-horizontal">
<div class="field-label">
<!-- Left empty for spacing -->
</div>
<div class="field-body">
<div class="field">
<div class="control">
<button class="button is-primary">
Search
</button>
</div>
</div>
2022-07-21 12:45:28 +00:00
</div>
2022-07-21 12:46:05 +00:00
</div>
2022-07-21 12:49:01 +00:00
2022-07-21 12:49:11 +00:00
</form>
2022-07-21 12:46:05 +00:00
</div>
2022-07-21 12:45:28 +00:00
2022-07-21 12:49:01 +00:00
<div class="block">
2022-07-21 12:49:11 +00:00
<table class="table">
{% if results is not None %}
<thead>
<tr>
<th>TS</th>
<th>msg</th>
<th>host</th>
<th>nick</th>
<th>channel</th>
<th>net</th>
</tr>
</thead>
{% endif %}
<tbody>
{% for item in results %}
<tr>
<td>{{ item.ts }}</td>
<td>{{ item.msg }}</td>
<td>{{ item.host }}</td>
<td>{{ item.nick }}</td>
<td>{{ item.channel }}</td>
<td>{{ item.net }}</td>
</tr>
{% endfor %}
</tbody>
</table>
2022-07-21 12:49:01 +00:00
</div>
2022-07-21 12:49:11 +00:00
{% if results is not None %}
<p>{{ card }} hits</p>
{% endif %}
2022-07-21 12:45:28 +00:00
{% endblock %}