From cfacbaa3631b591b4106b5294ff779fb4bd5d2b1 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Fri, 21 May 2021 17:17:20 +0000 Subject: change file extensions --- apioforum/auth.py | 2 +- apioforum/templates/auth/login.html | 14 -------------- apioforum/templates/auth/login.html.j2 | 14 ++++++++++++++ apioforum/templates/base.html | 16 ---------------- apioforum/templates/base.html.j2 | 16 ++++++++++++++++ 5 files changed, 31 insertions(+), 31 deletions(-) delete mode 100644 apioforum/templates/auth/login.html create mode 100644 apioforum/templates/auth/login.html.j2 delete mode 100644 apioforum/templates/base.html create mode 100644 apioforum/templates/base.html.j2 diff --git a/apioforum/auth.py b/apioforum/auth.py index 2d42407..d19ad57 100644 --- a/apioforum/auth.py +++ b/apioforum/auth.py @@ -28,7 +28,7 @@ def login(): flash(err) - return render_template("auth/login.html") + return render_template("auth/login.html.j2") @bp.route("/cool") diff --git a/apioforum/templates/auth/login.html b/apioforum/templates/auth/login.html deleted file mode 100644 index f7da0d3..0000000 --- a/apioforum/templates/auth/login.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "base.html" %} -{% block header %} -

{% block title %}login{% endblock %}

-{% endblock %} - -{% block content %} -
- - - - - -
-{% endblock %} diff --git a/apioforum/templates/auth/login.html.j2 b/apioforum/templates/auth/login.html.j2 new file mode 100644 index 0000000..5f311cf --- /dev/null +++ b/apioforum/templates/auth/login.html.j2 @@ -0,0 +1,14 @@ +{% extends "base.html.j2" %} +{% block header %} +

{% block title %}login{% endblock %}

+{% endblock %} + +{% block content %} +
+ + + + + +
+{% endblock %} diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html deleted file mode 100644 index 01339c1..0000000 --- a/apioforum/templates/base.html +++ /dev/null @@ -1,16 +0,0 @@ -{# BASED? BASED ON WHAT? #} - - - - {%block title %}{% endblock %} - - - - {% block header %}{% endblock %} - {% for msg in get_flashed_messages() %} -
{{ msg }}
- {% endfor %} - {%block content %}{% endblock %} - - - diff --git a/apioforum/templates/base.html.j2 b/apioforum/templates/base.html.j2 new file mode 100644 index 0000000..01339c1 --- /dev/null +++ b/apioforum/templates/base.html.j2 @@ -0,0 +1,16 @@ +{# BASED? BASED ON WHAT? #} + + + + {%block title %}{% endblock %} + + + + {% block header %}{% endblock %} + {% for msg in get_flashed_messages() %} +
{{ msg }}
+ {% endfor %} + {%block content %}{% endblock %} + + + -- cgit v1.2.3