We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69f16a4 commit 912071aCopy full SHA for 912071a
src/bundle/Resources/views/themes/admin/ui/layout.html.twig
@@ -128,10 +128,7 @@
128
</a>
129
{% endblock %}
130
{% block user_mode %}
131
- {# TODO: get user mode from backend #}
132
- {{ include('@ibexadesign/ui/user_mode_badge.html.twig', {
133
- focus_mode: true,
134
- }) }}
+ {{ include('@ibexadesign/ui/user_mode_badge.html.twig') }}
135
136
</div>
137
<div class="ibexa-main-header__search-column">
src/bundle/Resources/views/themes/admin/ui/user_mode_badge.html.twig
@@ -1,6 +1,6 @@
1
{% trans_default_domain 'ibexa_user_mode_badge' %}
2
3
-{% if focus_mode == true %}
+{% if ibexa_is_focus_mode_on() == true %}
4
<div class="ibexa-user-mode-badge">
5
{{ 'user_mode_badge.focus'|trans|desc('Focus mode') }}
6
0 commit comments