Correctly format all templates
This commit is contained in:
parent
220a4e2451
commit
56f2c96b45
|
@ -1,6 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load hy %}
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<script src="{% static 'js/chart.js' %}"></script>
|
<script src="{% static 'js/chart.js' %}"></script>
|
||||||
<script>
|
<script>
|
||||||
|
@ -68,10 +67,10 @@
|
||||||
</script>
|
</script>
|
||||||
<div>
|
<div>
|
||||||
<form method="POST" hx-post="{% url 'search_drilldown' %}"
|
<form method="POST" hx-post="{% url 'search_drilldown' %}"
|
||||||
hx-trigger="change"
|
hx-trigger="change"
|
||||||
hx-target="#results"
|
hx-target="#results"
|
||||||
hx-swap="innerHTML"
|
hx-swap="innerHTML"
|
||||||
hx-indicator="#spinner">
|
hx-indicator="#spinner">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
|
@ -79,10 +78,10 @@
|
||||||
<div class="field has-addons">
|
<div class="field has-addons">
|
||||||
<div class="control is-expanded has-icons-left">
|
<div class="control is-expanded has-icons-left">
|
||||||
<input
|
<input
|
||||||
hx-post="{% url 'search_drilldown' %}"
|
hx-post="{% url 'search_drilldown' %}"
|
||||||
hx-trigger="keyup changed delay:200ms"
|
hx-trigger="keyup changed delay:200ms"
|
||||||
hx-target="#results"
|
hx-target="#results"
|
||||||
hx-swap="innerHTML" id="query" name="query" class="input" type="text" placeholder="msg: science AND nick: BillNye AND channel: #science">
|
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">
|
<span class="icon is-small is-left">
|
||||||
<i class="fas fa-magnifying-glass"></i>
|
<i class="fas fa-magnifying-glass"></i>
|
||||||
</span>
|
</span>
|
||||||
|
@ -105,7 +104,7 @@
|
||||||
<div class="column is-3">
|
<div class="column is-3">
|
||||||
<div class="nowrap-parent">
|
<div class="nowrap-parent">
|
||||||
<div
|
<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">
|
class="button is-light has-text-link is-right nowrap-child">
|
||||||
Options
|
Options
|
||||||
</div>
|
</div>
|
||||||
|
@ -203,7 +202,7 @@
|
||||||
|
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox" name="check-sentiment"
|
<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
|
Check sentiment
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -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 "_"
|
|
Loading…
Reference in New Issue