From daef5285761e05904b380f9bbaea6aa08b088869 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Tue, 17 Jul 2018 18:49:18 +0530 Subject: [PATCH] turbolinks: Replace style elements in head with blocks in body Turbolinks cannot replace the styles in the head of the HTML document. Moved them to the body by making the class of the body an overridable Django template block. Signed-off-by: Joseph Nuthalapati Reviewed-by: James Valleroy --- plinth/templates/apps.html | 8 ++------ plinth/templates/base.html | 2 +- plinth/templates/index.html | 9 +++------ plinth/templates/system.html | 8 ++------ static/themes/default/css/plinth.css | 12 ++++++++++++ 5 files changed, 20 insertions(+), 19 deletions(-) diff --git a/plinth/templates/apps.html b/plinth/templates/apps.html index db6b26d84..7f026a231 100644 --- a/plinth/templates/apps.html +++ b/plinth/templates/apps.html @@ -21,10 +21,6 @@ {% load static %} {% load i18n %} -{% block page_head %} - +{% block body_class %} + background-apps {% endblock %} diff --git a/plinth/templates/base.html b/plinth/templates/base.html index c651aff41..5f19daf51 100644 --- a/plinth/templates/base.html +++ b/plinth/templates/base.html @@ -83,7 +83,7 @@ {% block page_head %}{% endblock %} - +