UI Layout: New jinja block for adding custom classes to the body.
Usage: {% block bodyclasses %}custom-class-name{% endblock %}
This commit is contained in:
@@ -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) %}
|
||||||
|
Reference in New Issue
Block a user