Correctly format all templates

This commit is contained in:
Mark Veidemanis 2022-08-09 07:20:30 +01:00
parent 220a4e2451
commit 56f2c96b45
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 10 additions and 19 deletions

View File

@ -1,6 +1,5 @@
{% extends "base.html" %}
{% load static %}
{% load hy %}
{% block content %}
<script src="{% static 'js/chart.js' %}"></script>
<script>
@ -68,10 +67,10 @@
</script>
<div>
<form method="POST" hx-post="{% url 'search_drilldown' %}"
hx-trigger="change"
hx-target="#results"
hx-swap="innerHTML"
hx-indicator="#spinner">
hx-trigger="change"
hx-target="#results"
hx-swap="innerHTML"
hx-indicator="#spinner">
{% csrf_token %}
<div class="columns">
@ -79,10 +78,10 @@
<div class="field has-addons">
<div class="control is-expanded has-icons-left">
<input
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">
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">
<span class="icon is-small is-left">
<i class="fas fa-magnifying-glass"></i>
</span>
@ -105,7 +104,7 @@
<div class="column is-3">
<div class="nowrap-parent">
<div
{{ hy }} = "on click toggle .is-hidden on #options"
data-script="on click toggle .is-hidden on #options"
class="button is-light has-text-link is-right nowrap-child">
Options
</div>
@ -203,7 +202,7 @@
<label class="checkbox">
<input type="checkbox" name="check-sentiment"
_="on click toggle @disabled on #sliderWithValue then toggle @disabled on #sentiment">
data-script="on click toggle @disabled on #sliderWithValue then toggle @disabled on #sentiment">
Check sentiment
</label>
</div>

View File

@ -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 "_"