Files
iTop/templates/base/layouts/top-bar/layout.html.twig
Molkobain 0dc3d249da N°3526 - Clean up pass on UIBlocks
- Add ancestors CSS classes on UIBlocks when missing (programmatically)
- Fix SCSS due to some blocks inheriting their ancestors rules
2021-11-14 22:33:48 +01:00

18 lines
765 B
Twig

<nav id="{{ oUIBlock.GetId() }}" class="{{ oUIBlock.GetBlocksInheritanceCSSClassesAsString() }} {{ oUIBlock.GetAdditionalCSSClassesAsString() }}" data-role="ibo-top-bar">
<div class="ibo-top-bar--quick-actions" data-role="ibo-top-bar--quick-actions">
{% if oUIBlock.HasQuickCreate() %}
{{ render_block(oUIBlock.GetQuickCreate(), {aPage: aPage}) }}
{% endif %}
{% if oUIBlock.HasGlobalSearch() %}
{{ render_block(oUIBlock.GetGlobalSearch(), {aPage: aPage}) }}
{% endif %}
</div>
{% if oUIBlock.HasBreadcrumbs() %}
{{ render_block(oUIBlock.GetBreadcrumbs(), {aPage: aPage}) }}
{% endif %}
{% if oUIBlock.HasToolBar() %}
<div class="ibo-top-bar--toolbar">
{{ render_block(oUIBlock.GetToolBar(), {aPage: aPage}) }}
</div>
{% endif %}
</nav>