Fix whitespace in HTML
This commit is contained in:
@ -28,7 +28,7 @@
|
|||||||
</option>
|
</option>
|
||||||
{% for hook in webhooks %}
|
{% for hook in webhooks %}
|
||||||
<option value="{{ hook.name }}">
|
<option value="{{ hook.name }}">
|
||||||
{{ hook.name }}
|
{{- hook.name -}}
|
||||||
</option>
|
</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="blacklist_title"
|
id="blacklist_title"
|
||||||
value="{% if blacklist_title %}
|
value="{% if blacklist_title %}
|
||||||
{{ blacklist_title }}
|
{{- blacklist_title -}}
|
||||||
{% endif %}"/>
|
{% endif %}"/>
|
||||||
<label for="blacklist_summary" class="col-sm-6 col-form-label">Blacklist - Summary</label>
|
<label for="blacklist_summary" class="col-sm-6 col-form-label">Blacklist - Summary</label>
|
||||||
<input name="blacklist_summary"
|
<input name="blacklist_summary"
|
||||||
@ -44,7 +44,7 @@
|
|||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="blacklist_summary"
|
id="blacklist_summary"
|
||||||
value="{% if blacklist_summary %}
|
value="{% if blacklist_summary %}
|
||||||
{{ blacklist_summary }}
|
{{- blacklist_summary -}}
|
||||||
{% endif %}"/>
|
{% endif %}"/>
|
||||||
<label for="blacklist_content" class="col-sm-6 col-form-label">Blacklist - Content (Not implemented yet)</label>
|
<label for="blacklist_content" class="col-sm-6 col-form-label">Blacklist - Content (Not implemented yet)</label>
|
||||||
<input name="blacklist_content"
|
<input name="blacklist_content"
|
||||||
@ -52,7 +52,7 @@
|
|||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="blacklist_content"
|
id="blacklist_content"
|
||||||
value="{% if blacklist_content %}
|
value="{% if blacklist_content %}
|
||||||
{{ blacklist_content }}
|
{{- blacklist_content -}}
|
||||||
{% endif %}"
|
{% endif %}"
|
||||||
disabled/>
|
disabled/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -210,7 +210,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<code>
|
<code>
|
||||||
{% raw %}
|
{% raw %}
|
||||||
Hello {{ entry_author }}\n{{ feed_title }}\n{{ entry_read -}}
|
Hello {{ entry_author }}\n{{ feed_title }}\n{{ entry_read }}
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
</code>
|
</code>
|
||||||
</li>
|
</li>
|
||||||
@ -221,7 +221,7 @@
|
|||||||
<pre>
|
<pre>
|
||||||
Hello {{ entry.author }}
|
Hello {{ entry.author }}
|
||||||
{{ feed.title }}
|
{{ feed.title }}
|
||||||
{{ entry.read -}}
|
{{ entry.read }}
|
||||||
</pre>
|
</pre>
|
||||||
</code>
|
</code>
|
||||||
</li>
|
</li>
|
||||||
@ -235,8 +235,9 @@ Hello {{ entry.author }}
|
|||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="custom_message"
|
id="custom_message"
|
||||||
value="{% if custom_message -%}
|
value="{% if custom_message %}
|
||||||
{{ custom_message }}{%- endif %}"/>
|
{{- custom_message -}}
|
||||||
|
{% endif %}"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Add a hidden feed_url field to the form -->
|
<!-- Add a hidden feed_url field to the form -->
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
- <span>
|
- <span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ feed_count.updates_enabled }} enabled</span>
|
{{- feed_count.updates_enabled -}} enabled</span>
|
||||||
<!-- How many entries -->
|
<!-- How many entries -->
|
||||||
- {{ entry_count.total }} entries
|
- {{ entry_count.total }} entries
|
||||||
<abbr title="Average entries per day for the past 1, 3 and 12 months">
|
<abbr title="Average entries per day for the past 1, 3 and 12 months">
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{% endblock title %}
|
{% endblock title %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="p-2 border border-dark text-muted">
|
<div class="p-2 border border-dark text-muted">
|
||||||
Your search for "{{ query }}" returned {{ search_amount.total }} results.
|
Your search for "{{- query -}}" returned {{- search_amount.total -}} results.
|
||||||
</div>
|
</div>
|
||||||
{{ search_html | safe }}
|
{{- search_html | safe -}}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="webhook_url"
|
id="webhook_url"
|
||||||
placeholder="https://discord.com/api/webhooks/1011224189471124054/CQMa4hJN4gz..."/>
|
placeholder="https://discord.com/api/webhooks/1011224189471124054/CQMa4hJN4gz"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{# Submit button #}
|
{# Submit button #}
|
||||||
|
@ -35,19 +35,25 @@
|
|||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="whitelist_title"
|
id="whitelist_title"
|
||||||
value="{% if whitelist_title %} {{ whitelist_title }}{% endif %}"/>
|
value="{% if whitelist_title %}
|
||||||
|
{{- whitelist_title -}}
|
||||||
|
{% endif %}"/>
|
||||||
<label for="whitelist_summary" class="col-sm-6 col-form-label">Whitelist - Summary</label>
|
<label for="whitelist_summary" class="col-sm-6 col-form-label">Whitelist - Summary</label>
|
||||||
<input name="whitelist_summary"
|
<input name="whitelist_summary"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="whitelist_summary"
|
id="whitelist_summary"
|
||||||
value="{% if whitelist_summary %} {{ whitelist_summary }}{% endif %}"/>
|
value="{% if whitelist_summary %}
|
||||||
|
{{- whitelist_summary -}}
|
||||||
|
{% endif %}"/>
|
||||||
<label for="whitelist_content" class="col-sm-6 col-form-label">Whitelist - Content (Not implemented yet)</label>
|
<label for="whitelist_content" class="col-sm-6 col-form-label">Whitelist - Content (Not implemented yet)</label>
|
||||||
<input name="whitelist_content"
|
<input name="whitelist_content"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control bg-dark border-dark text-muted"
|
class="form-control bg-dark border-dark text-muted"
|
||||||
id="whitelist_content"
|
id="whitelist_content"
|
||||||
value="{% if whitelist_content %} {{ whitelist_content }}{% endif %}"
|
value="{% if whitelist_content %}
|
||||||
|
{{- whitelist_content -}}
|
||||||
|
{% endif %}"
|
||||||
disabled/>
|
disabled/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user