From 42215d2b02873cfc4ba651fcde6f4ec8f3473649 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Fri, 29 Mar 2019 15:22:00 +0100 Subject: [PATCH] UI Layout: New jinja block for adding custom classes to the body. Usage: {% block bodyclasses %}custom-class-name{% endblock %} --- src/templates/layout.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/layout.pug b/src/templates/layout.pug index 8d0f9b4..8644b14 100644 --- a/src/templates/layout.pug +++ b/src/templates/layout.pug @@ -56,7 +56,7 @@ html(lang="en") | {% endblock css %} | {% if not title %}{% set title="default" %}{% endif %} - body(class="{{ title }} {{'project' if project and project.url != 'blender-cloud'}}" + body(class="{{ title }} {{'project' if project and project.url != 'blender-cloud'}} {% block bodyclasses %}{% endblock %}" "{% block bodyattrs %}{% endblock %}" ) | {% with messages = get_flashed_messages(with_categories=True) %}