Properly implement queries

This commit is contained in:
2022-08-03 07:20:30 +01:00
parent 1d2f37f588
commit 6af8e94336
7 changed files with 31 additions and 9 deletions

View File

@@ -80,7 +80,7 @@
id="search"
class="button is-info is-fullwidth"
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-put="{% url 'threshold_irc_msg' net num channel %}"
hx-put="{% url 'threshold_irc_msg' net num channel nick %}"
hx-trigger="click"
hx-target="#context-input"
hx-swap="outerHTML">

View File

@@ -30,7 +30,8 @@
"date": "{{ date }}",
"index": "{{ index }}",
"type": "{{ type }}",
"mtype": "{{ mtype }}"}'
"mtype": "{{ mtype }}",
"nick": "{{ nick }}"}'
hx-target="#modal-context-table"
hx-trigger="every 5s">
</div>

View File

@@ -225,7 +225,8 @@
"date": "{{ row.cells.date|escapejs }}",
"index": "{{ params.index }}",
"type": "{{ row.cells.type }}",
"mtype": "{{ row.cells.mtype }}"}'
"mtype": "{{ row.cells.mtype }}",
"nick": "{{ row.cells.nick|escapejs }}"}'
hx-target="#modals-here"
hx-trigger="click">
{{ row.cells.msg }}