From f64224831288aac4be5bab4ed7b88891dbd42ab2 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 3 Mar 2019 10:50:23 +0100 Subject: Move basic page layout to base template. --- templates/index.html | 14 +++++--------- templates/layout.html | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 9 deletions(-) create mode 100644 templates/layout.html (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 582c5ef..9e859b3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -15,12 +15,8 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see . -#} - - - - Ramaskrik Program - - -

Ramaskrik Program for {{ year }}

- - +{% extends "layout.html" %} + +{% block content %} +

Ramaskrik Programplanlegger for {{ year }}

+{% endblock %} diff --git a/templates/layout.html b/templates/layout.html new file mode 100644 index 0000000..9aa8781 --- /dev/null +++ b/templates/layout.html @@ -0,0 +1,26 @@ +{# + Social program for Ramaskrik. + Copyright (C) 2019 Harald Eilertsen + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +-#} + + + + Ramaskrik Program + + + {% block content %}{% endblock %} + + -- cgit v1.2.3