From a1757b282a25ffb63de93ca89ddca8188adb393e Mon Sep 17 00:00:00 2001 From: Hiyorimi Date: Thu, 6 Sep 2018 21:52:32 +0300 Subject: [PATCH] Finished transition to BS4. Fixes #313 and #266 --- .../templates/layout.html | 36 +++++++++---------- .../templates/nav.html | 2 +- .../templates/public/about.html | 4 +-- .../templates/public/home.html | 22 ++++++------ .../templates/public/register.html | 2 +- 5 files changed, 33 insertions(+), 33 deletions(-) diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/layout.html b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/layout.html index 725edb4..b405c1d 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/layout.html +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/layout.html @@ -32,28 +32,26 @@ {% endwith %}
{% block header %}{% endblock %}
-
-
- {% with messages = get_flashed_messages(with_categories=true) %} - {% if messages %} -
-
- {% for category, message in messages %} -
- × - {{message}} -
- {% endfor %} -
-
- {% endif %} - {% endwith %} +
+{% with messages = get_flashed_messages(with_categories=true) %} +{% if messages %} +
+
+ {% for category, message in messages %} +
+ × + {{message}} +
+ {% endfor %} +
+
+ {% endif %} +{% endwith %} - {% block content %}{% endblock %} -
+{% block content %}{% endblock %} + -
{% include "footer.html" %} diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html index 784bcc1..a6e2883 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html @@ -31,7 +31,7 @@ {% elif form %} -
+
{{ form.username(placeholder="Username", class_="form-control mr-sm-1 my-auto") }} {{ form.password(placeholder="Password", diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/about.html b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/about.html index 7365ee4..4dcb7c1 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/about.html +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/about.html @@ -3,9 +3,9 @@ {% block content %}
-

About

+

About

-

This template was created by Steven Loria for use with the cookiecutter package by Audrey Roy.

+

This template was created by Steven Loria for use with the cookiecutter package by Audrey Roy.

{% endblock %} diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/home.html b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/home.html index 4a8476b..0a9cd83 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/home.html +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/home.html @@ -2,30 +2,32 @@ {% extends "layout.html" %} {% block content %} -
-{% endraw %} -

Welcome to {{ cookiecutter.project_name }}

-{% raw %} -

This is a starter Flask template. It includes Bootstrap 4, jQuery 3, Flask-SQLAlchemy, WTForms, and various testing utilities out of the box.

-

Learn more »

+
+
+ {% endraw %} +

Welcome to {{ cookiecutter.project_name }}

+ {% raw %} +

This is a starter Flask template. It includes Bootstrap 4, jQuery 3, Flask-SQLAlchemy, WTForms, and various testing utilities out of the box.

+

Learn more »

+
-
+

Bootstrap 4

Sleek, intuitive, and powerful mobile-first front-end framework for faster and easier web development.

-

Official website »

+

Official website »

SQLAlchemy

SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.

-

Official website »

+

Official website »

WTForms

WTForms is a flexible forms validation and rendering library for python web development.

-

Official website »

+

Official website »

diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/register.html b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/register.html index 1629089..d36caa5 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/register.html +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/register.html @@ -2,7 +2,7 @@ {% extends "layout.html" %} {% block content %}
-

Register

+

Register


{{ form.csrf_token }}