From 1ba241186299df50a94efd3d410a4422bdc2d6c3 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 17 Jun 2019 20:47:58 -0700 Subject: Inherit from base template --- youtube/templates/base.html | 111 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 youtube/templates/base.html (limited to 'youtube/templates/base.html') diff --git a/youtube/templates/base.html b/youtube/templates/base.html new file mode 100644 index 0000000..e98f972 --- /dev/null +++ b/youtube/templates/base.html @@ -0,0 +1,111 @@ + + + + + {% block page_title %}{% endblock %} + + + + + + + +
+ + +
+
+ + + {% for playlist_name in header_playlist_names %} + + {% endfor %} + + + +
+ Local playlists +
+
+
+{% block main %} +{% endblock %} +
+ + -- cgit v1.2.3 From 1156b0998758ee803c7e8ae0cc2beb5181c232a3 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Fri, 21 Jun 2019 21:41:41 -0700 Subject: Refactor search page --- youtube/templates/base.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'youtube/templates/base.html') diff --git a/youtube/templates/base.html b/youtube/templates/base.html index e98f972..eafd369 100644 --- a/youtube/templates/base.html +++ b/youtube/templates/base.html @@ -2,13 +2,14 @@ - {% block page_title %}{% endblock %} + {% block page_title %}{{ title }}{% endblock %} @@ -105,6 +106,7 @@
{% block main %} +{{ main }} {% endblock %}
-- cgit v1.2.3 From 74cf3b2135661ae17b4e390c91182c673645cad7 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 21 Jul 2019 22:50:57 -0700 Subject: Use variable to set title on base template instead of block --- youtube/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/templates/base.html') diff --git a/youtube/templates/base.html b/youtube/templates/base.html index eafd369..3dda55d 100644 --- a/youtube/templates/base.html +++ b/youtube/templates/base.html @@ -2,7 +2,7 @@ - {% block page_title %}{{ title }}{% endblock %} + {{ page_title }} -- cgit v1.2.3 From 4c9ecc9a18ca9c9e7b444edc2e265d6d1b2e9973 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Fri, 26 Jul 2019 13:09:41 -0700 Subject: Add content security policy to ensure mistakes or exploits never lead to third party connections from the page --- youtube/templates/base.html | 1 + 1 file changed, 1 insertion(+) (limited to 'youtube/templates/base.html') diff --git a/youtube/templates/base.html b/youtube/templates/base.html index 3dda55d..fae7d13 100644 --- a/youtube/templates/base.html +++ b/youtube/templates/base.html @@ -3,6 +3,7 @@ {{ page_title }} + -- cgit v1.2.3 From 0f574e8e28520c46d1d335ceede2bb05f4f3ed3a Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 7 Aug 2019 20:27:19 -0700 Subject: Regression: Fix csp preventing subtitles from working --- youtube/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/templates/base.html') diff --git a/youtube/templates/base.html b/youtube/templates/base.html index fae7d13..72e3691 100644 --- a/youtube/templates/base.html +++ b/youtube/templates/base.html @@ -3,7 +3,7 @@ {{ page_title }} - + -- cgit v1.2.3