From 17494ca4dfc5484e380b4e3afcc5bfdfc0cc2d7b Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Fri, 23 Sep 2022 18:55:45 -0400 Subject: [PATCH] Add base jinja template. --- undercover/templates/base.jinja2 | 22 ++++++++++++++++++++++ undercover/templates/writing.jinja2 | 22 ++++++---------------- 2 files changed, 28 insertions(+), 16 deletions(-) create mode 100644 undercover/templates/base.jinja2 diff --git a/undercover/templates/base.jinja2 b/undercover/templates/base.jinja2 new file mode 100644 index 0000000..477efe4 --- /dev/null +++ b/undercover/templates/base.jinja2 @@ -0,0 +1,22 @@ + + + + + {% block title %}UnderCover{% endblock title %} + + + + {% block head %}{{ head }}{% endblock head %} + + + + +

+
+

The secret cover letter generator

+{% block content %} + {{ content }} +{% endblock content %} + + + diff --git a/undercover/templates/writing.jinja2 b/undercover/templates/writing.jinja2 index 8858aaa..44e9731 100644 --- a/undercover/templates/writing.jinja2 +++ b/undercover/templates/writing.jinja2 @@ -1,12 +1,8 @@ - - +{% extends "base.jinja2" %} - - UnderCover - - - +{% block title %}UnderCover{% endblock %} +{% block head %} - +{% endblock head %} - - -

-
-

The secret cover letter generator

+{% block content %} {% if username %}

You are logged in as {{ username }}

@@ -99,6 +91,4 @@ {% endif %} >Generate PDF - - - +{% endblock content %}