ajout des groupes en tant que nom de class body (fixes #31091)
This commit is contained in:
parent
b7b9ae6ec1
commit
e115929020
@ -41,6 +41,13 @@
|
||||
{% else %}
|
||||
{% set bodystyle="simple" %}
|
||||
{% endif %}
|
||||
|
||||
{% if app.user %}
|
||||
{% for usergroup in app.user.groups %}
|
||||
{% set bodystyle = bodystyle~" grp-"~usergroup.group.label|replace({" ":"", "'":""}) %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<body class="{{ bodystyle }}">
|
||||
<div id="wrapper">
|
||||
{% if useheader and app.request.attributes.get('_route')=='cadoles_core_home' %}
|
||||
|
Loading…
Reference in New Issue
Block a user