From c312004266e2cb1ddf684b68bbfac6e4dfac5b8d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 26 Jun 2021 22:30:02 +0200 Subject: move HTML header elements to separate template --- templates/departure_list.html | 14 +------------- templates/header.html | 13 +++++++++++++ templates/landing_page.html | 14 +------------- templates/stops.html | 14 +------------- 4 files changed, 16 insertions(+), 39 deletions(-) create mode 100644 templates/header.html diff --git a/templates/departure_list.html b/templates/departure_list.html index e234a2c..a82e7c3 100644 --- a/templates/departure_list.html +++ b/templates/departure_list.html @@ -2,19 +2,7 @@ {{ title }} - - - - - - - - - - - - - + {% include 'header.html' %}
diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 0000000..5d62fda --- /dev/null +++ b/templates/header.html @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/templates/landing_page.html b/templates/landing_page.html index f487616..c89da47 100644 --- a/templates/landing_page.html +++ b/templates/landing_page.html @@ -2,19 +2,7 @@ {{ title }} - - - - - - - - - - - - - + {% include 'header.html' %} diff --git a/templates/stops.html b/templates/stops.html index 4f31c0a..2cbac8e 100644 --- a/templates/stops.html +++ b/templates/stops.html @@ -2,19 +2,7 @@ {{ title }} - - - - - - - - - - - - - + {% include 'header.html' %}
-- cgit v1.2.3