From 56f2c96b4546537b15cd59e6268665d01b3b158b Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 9 Aug 2022 07:20:30 +0100 Subject: [PATCH] Correctly format all templates --- core/templates/ui/drilldown/drilldown.html | 21 ++++++++++----------- core/templatetags/hy.py | 8 -------- 2 files changed, 10 insertions(+), 19 deletions(-) delete mode 100644 core/templatetags/hy.py diff --git a/core/templates/ui/drilldown/drilldown.html b/core/templates/ui/drilldown/drilldown.html index de3a889..1f7eec1 100644 --- a/core/templates/ui/drilldown/drilldown.html +++ b/core/templates/ui/drilldown/drilldown.html @@ -1,6 +1,5 @@ {% extends "base.html" %} {% load static %} -{% load hy %} {% block content %}
+ hx-trigger="change" + hx-target="#results" + hx-swap="innerHTML" + hx-indicator="#spinner"> {% csrf_token %}
@@ -79,10 +78,10 @@
+ hx-post="{% url 'search_drilldown' %}" + hx-trigger="keyup changed delay:200ms" + hx-target="#results" + hx-swap="innerHTML" id="query" name="query" class="input" type="text" placeholder="msg: science AND nick: BillNye AND channel: #science"> @@ -105,7 +104,7 @@
@@ -203,7 +202,7 @@
diff --git a/core/templatetags/hy.py b/core/templatetags/hy.py deleted file mode 100644 index 29c300f..0000000 --- a/core/templatetags/hy.py +++ /dev/null @@ -1,8 +0,0 @@ -from django import template - -register = template.Library() - -# Dirty hack to workaround curlylint not allowing _ -@register.filter -def hy(user, plan_name): - return "_"