From 2bba9d21b93f0b086e94d2d0f75f6cbcd6740989 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sat, 9 Oct 2021 17:05:42 +0200 Subject: [PATCH] Added shared macros template with shared style --- server/templates/collection_element.htm | 9 ++------- server/templates/collection_list.htm | 9 ++------- server/templates/macros.htm | 19 +++++++++++++++++++ server/templates/media_element.htm | 9 ++------- server/templates/media_list.htm | 19 ++----------------- 5 files changed, 27 insertions(+), 38 deletions(-) create mode 100644 server/templates/macros.htm diff --git a/server/templates/collection_element.htm b/server/templates/collection_element.htm index 3770ee8..8e483e5 100644 --- a/server/templates/collection_element.htm +++ b/server/templates/collection_element.htm @@ -1,16 +1,11 @@ +{% import "macros.htm" as macros %} {% set title = collection.title %} {{ title }} - + {{ macros.shared_style() }} <- back to list diff --git a/server/templates/collection_list.htm b/server/templates/collection_list.htm index 41c5b4d..1206a08 100644 --- a/server/templates/collection_list.htm +++ b/server/templates/collection_list.htm @@ -1,16 +1,11 @@ +{% import "macros.htm" as macros %} {% set title = collection_list | length | string + " Collections known" %} {{ title }} - + {{ macros.shared_style() }}

{{ title }}

diff --git a/server/templates/macros.htm b/server/templates/macros.htm new file mode 100644 index 0000000..bea2e47 --- /dev/null +++ b/server/templates/macros.htm @@ -0,0 +1,19 @@ +{% macro shared_style() %} + +{% endmacro %} diff --git a/server/templates/media_element.htm b/server/templates/media_element.htm index f2b3c14..4a456ee 100644 --- a/server/templates/media_element.htm +++ b/server/templates/media_element.htm @@ -1,16 +1,11 @@ +{% import "macros.htm" as macros %} {% set title = element.title %} {{ title }} - + {{ macros.shared_style() }} <- back to list diff --git a/server/templates/media_list.htm b/server/templates/media_list.htm index c22b64f..5b73d73 100644 --- a/server/templates/media_list.htm +++ b/server/templates/media_list.htm @@ -1,26 +1,11 @@ +{% import "macros.htm" as macros %} {% set title = media_list | length | string + " Videos known" %} {{ title }} - + {{ macros.shared_style() }}

{{ title }}