UI Layout: New jinja block for adding custom classes to the body.

Usage: {% block bodyclasses %}custom-class-name{% endblock %}
This commit is contained in:
2019-03-29 15:22:00 +01:00
parent 9cf3a7147e
commit 42215d2b02

View File

@@ -56,7 +56,7 @@ html(lang="en")
| {% endblock css %} | {% endblock css %}
| {% if not title %}{% set title="default" %}{% endif %} | {% 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 %}" "{% block bodyattrs %}{% endblock %}"
) )
| {% with messages = get_flashed_messages(with_categories=True) %} | {% with messages = get_flashed_messages(with_categories=True) %}