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 }}