diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2019-03-03 10:50:23 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2019-03-03 11:01:55 +0100 |
commit | f64224831288aac4be5bab4ed7b88891dbd42ab2 (patch) | |
tree | 24b8823fc5109bc23bc07b0f11d3cdbd441fe391 /templates | |
parent | ecc0ff7bf3f05ce11f59ce25f5c262905d594b9b (diff) | |
download | ramaskrik-social-f64224831288aac4be5bab4ed7b88891dbd42ab2.tar.gz ramaskrik-social-f64224831288aac4be5bab4ed7b88891dbd42ab2.tar.bz2 ramaskrik-social-f64224831288aac4be5bab4ed7b88891dbd42ab2.zip |
Move basic page layout to base template.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 14 | ||||
-rw-r--r-- | templates/layout.html | 26 |
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> |