Skip to content

Commit

Permalink
aded focus mode
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Dec 18, 2023
1 parent 69f16a4 commit 912071a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/bundle/Resources/views/themes/admin/ui/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,7 @@
</a>
{% endblock %}
{% block user_mode %}
{# TODO: get user mode from backend #}
{{ include('@ibexadesign/ui/user_mode_badge.html.twig', {
focus_mode: true,
}) }}
{{ include('@ibexadesign/ui/user_mode_badge.html.twig') }}
{% endblock %}
</div>
<div class="ibexa-main-header__search-column">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% trans_default_domain 'ibexa_user_mode_badge' %}

{% if focus_mode == true %}
{% if ibexa_is_focus_mode_on() == true %}
<div class="ibexa-user-mode-badge">
{{ 'user_mode_badge.focus'|trans|desc('Focus mode') }}
</div>
Expand Down

0 comments on commit 912071a

Please sign in to comment.