From e266f5bb2f022f96685124d3cb41376ebccb890b Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 21 Jan 2021 00:49:22 +0000 Subject: [PATCH] web/quotes: format templates --- web/quotes/templates/account/login.html | 18 ++--- web/quotes/templates/alert.html | 12 ++-- web/quotes/templates/base.html | 70 +++++++++---------- web/quotes/templates/quotedb/_quote.html | 12 ++-- .../templates/quotedb/delete_quote.html | 4 +- web/quotes/templates/quotedb/list.html | 10 +-- web/quotes/templates/quotedb/new.html | 10 +-- 7 files changed, 68 insertions(+), 68 deletions(-) diff --git a/web/quotes/templates/account/login.html b/web/quotes/templates/account/login.html index 8a66661d70..3de8a55eec 100644 --- a/web/quotes/templates/account/login.html +++ b/web/quotes/templates/account/login.html @@ -15,15 +15,15 @@

...or

- {% csrf_token %} - {% if redirect_field_value %} - - {% endif %} -
- {{ form.login }} - {{ form.password }} - -
+ {% csrf_token %} + {% if redirect_field_value %} + + {% endif %} +
+ {{ form.login }} + {{ form.password }} + +
{% endblock %} diff --git a/web/quotes/templates/alert.html b/web/quotes/templates/alert.html index e773d7efd2..6c6868e3bf 100644 --- a/web/quotes/templates/alert.html +++ b/web/quotes/templates/alert.html @@ -3,12 +3,12 @@ {% block content_extra_classes %}flex justify-center{% endblock %} {% block content %}
-

- {% block content_title %}{% endblock %} -

+

+ {% block content_title %}{% endblock %} +

- {% block content_wrap %} -

{% block content_text %}{% endblock %}

- {% endblock %} + {% block content_wrap %} +

{% block content_text %}{% endblock %}

+ {% endblock %}
{% endblock %} diff --git a/web/quotes/templates/base.html b/web/quotes/templates/base.html index edb11d200a..a6304a6715 100644 --- a/web/quotes/templates/base.html +++ b/web/quotes/templates/base.html @@ -1,45 +1,45 @@ {% load static %} - - - - - {% block fulltitle %}{% block title %}{% endblock title %} | BFOB Quotes{% endblock %} + + + + + {% block fulltitle %}{% block title %}{% endblock title %} | BFOB Quotes{% endblock %} - - - + + + - + -
-
-

- - BFOB Quotes - -

-
- {% if user.is_authenticated %} - + - all -
- {% csrf_token %} - - -
- {% else %} - login - {% endif %} -
-
-
+
+
+

+ + BFOB Quotes + +

+
+ {% if user.is_authenticated %} + + + all +
+ {% csrf_token %} + + +
+ {% else %} + login + {% endif %} +
+
+
-
- {% block content %}{% endblock %} -
+
+ {% block content %}{% endblock %} +
- + diff --git a/web/quotes/templates/quotedb/_quote.html b/web/quotes/templates/quotedb/_quote.html index e6553946dd..1758ff0f06 100644 --- a/web/quotes/templates/quotedb/_quote.html +++ b/web/quotes/templates/quotedb/_quote.html @@ -1,8 +1,8 @@
-

#{{ quote.id }}

-

{{ quote.quote }}

-

added by {{ quote.added_by.username }} on {{ quote.added_at }}

- {% if request.user == quote.added_by %} - del - {% endif %} +

#{{ quote.id }}

+

{{ quote.quote }}

+

added by {{ quote.added_by.username }} on {{ quote.added_at }}

+ {% if request.user == quote.added_by %} + del + {% endif %}
diff --git a/web/quotes/templates/quotedb/delete_quote.html b/web/quotes/templates/quotedb/delete_quote.html index 51046f4dcf..a0998470f3 100644 --- a/web/quotes/templates/quotedb/delete_quote.html +++ b/web/quotes/templates/quotedb/delete_quote.html @@ -8,7 +8,7 @@
{{ quote.quote }}
- {% csrf_token %} - + {% csrf_token %} +
{% endblock %} diff --git a/web/quotes/templates/quotedb/list.html b/web/quotes/templates/quotedb/list.html index 0e44c1723c..6b5d9fd239 100644 --- a/web/quotes/templates/quotedb/list.html +++ b/web/quotes/templates/quotedb/list.html @@ -6,19 +6,19 @@

quote list

- {% if page.has_previous %}prev{% endif %} - {% if page.has_next %}{% if page.has_previous %} | {% endif %}next{% endif %} + {% if page.has_previous %}prev{% endif %} + {% if page.has_next %}{% if page.has_previous %} | {% endif %}next{% endif %}
{% comment %}{% include "quotedb/_quote.html" %}{% endcomment %} {% for quote in page %}
- {% include "quotedb/_quote.html" %} + {% include "quotedb/_quote.html" %}
{% endfor %}
- {% if page.has_previous %}prev{% endif %} - {% if page.has_next %}{% if page.has_previous %} | {% endif %}next{% endif %} + {% if page.has_previous %}prev{% endif %} + {% if page.has_next %}{% if page.has_previous %} | {% endif %}next{% endif %}
{% endblock %} diff --git a/web/quotes/templates/quotedb/new.html b/web/quotes/templates/quotedb/new.html index 8bcc5bdc3f..5b1dcea753 100644 --- a/web/quotes/templates/quotedb/new.html +++ b/web/quotes/templates/quotedb/new.html @@ -6,10 +6,10 @@

gimme quote

- {% csrf_token %} -
- - -
+ {% csrf_token %} +
+ + +
{% endblock %}