Make notification rules queryable

This commit is contained in:
2023-02-02 20:41:19 +00:00
parent df1e82c5f2
commit 81c8e34211
11 changed files with 76 additions and 9 deletions

View File

@@ -14,7 +14,9 @@
</span>
{% endif %}
fetched {{ table.data|length }} hits in {{ took }}ms
fetched {{ table.data|length }}
{% if params.rule is None %} hits {% else %} rule hits for {{ params.rule }}{% endif %}
in {{ took }}ms
{% if exemption is not None %}
<span class="icon has-tooltip-bottom" data-tooltip="God mode">

View File

@@ -3,6 +3,7 @@
{% load static %}
{% load joinsep %}
{% load urlsafe %}
{% load pretty %}
{% block table-wrapper %}
<script src="{% static 'js/column-shifter.js' %}"></script>
<div id="drilldown-table" class="column-shifter-container" style="position:relative; z-index:1;">
@@ -373,6 +374,10 @@
{% endfor %}
</div>
</td>
{% elif column.name == "meta" %}
<td class="{{ column.name }}">
<pre>{{ cell|pretty }}</pre>
</td>
{% else %}
<td class="{{ column.name }}">
<a

View File

@@ -22,7 +22,7 @@
</thead>
{% for item in object_list %}
<tr>
<td>{{ item.id }}</td>
<td><a href="/search/?rule={{ item.id }}&query=*&source=all">{{ item.id }}</a></td>
<td>{{ item.user }}</td>
<td>{{ item.name }}</td>
<td>{{ item.interval }}s</td>