bootstrap_italia-8.x-0.x-dev/templates/region/local-tasks/menu-local-tasks.html.twig
templates/region/local-tasks/menu-local-tasks.html.twig
{# /** * @file * Default theme implementation to display primary and secondary local tasks. * Docs: https://italia.github.io/bootstrap-italia/docs/componenti/tab/ * Latest revision: v2.8.7 * * Available variables: * - primary: HTML list items representing primary tasks. * - secondary: HTML list items representing secondary tasks. * * Each item in these variables (primary and secondary) can be individually * themed in menu-local-task.html.twig. * * @ingroup themeable */ #} {% apply spaceless %} {% set attributes = attributes.addClass(['nav', 'nav-tabs', 'mb-3']) %} {% if primary %} <h2 class="visually-hidden">{{ 'Primary tabs'|t }}</h2> {% if editor_nav_tabs_scrollable %} <ul{{ attributes }}>{{ primary }}</ul> {% else %} <div class="nav-tabs-hidescroll"> <ul{{ attributes }}>{{ primary }}</ul> </div> {% endif %} {% endif %} {% if secondary %} <h2 class="visually-hidden">{{ 'Secondary tabs'|t }}</h2> {% if editor_nav_tabs_scrollable %} <ul{{ attributes.addClass('mt-5') }}>{{ secondary }}</ul> {% else %} <div class="nav-tabs-hidescroll"> <ul{{ attributes.addClass('mt-5') }}>{{ secondary }}</ul> </div> {% endif %} {% endif %} {% endapply %}