aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/index.html14
-rw-r--r--templates/layout.html26
2 files changed, 31 insertions, 9 deletions
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 <https://www.gnu.org/licenses/>.
-#}
-<!DOCTYPE html>
-<html>
- <head>
- <title>Ramaskrik Program</title>
- </head>
- <body>
- <h1>Ramaskrik Program for {{ year }}</h1>
- </body>
-</html>
+{% extends "layout.html" %}
+
+{% block content %}
+ <h1>Ramaskrik Programplanlegger for {{ year }}</h1>
+{% 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 <haraldei@anduin.net>
+
+ 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 <https://www.gnu.org/licenses/>.
+-#}
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Ramaskrik Program</title>
+ </head>
+ <body>
+ {% block content %}{% endblock %}
+ </body>
+</html>