templates/bundles/APYBreadcrumbTrailBundle/breadcrumbtrail.html.twig line 1

Open in your IDE?
  1. {% if breadcrumbs is not empty %}
  2.     <nav aria-label="breadcrumb" class="container mt-3">
  3.         <ol class="breadcrumb">
  4.             <li class="breadcrumb-item">
  5.                 <a href="{{ path('app_home') }}" aria-label="page d'accueil"><i class="fas fa-home"></i></a>
  6.             </li>
  7.             {% for breadcrumb in breadcrumbs %}
  8.                 <li class="breadcrumb-item {{ breadcrumb.url == '' ? 'active' }}" {{ breadcrumb.url == '' ? 'aria-current="page"' }}>
  9.                     {% if breadcrumb.url %}
  10.                         <a href="{{ breadcrumb.url }}">{{ breadcrumb.title }}</a>
  11.                     {% else %}
  12.                         {{ breadcrumb.title }}
  13.                     {% endif %}
  14.                 </li>
  15.             {% endfor %}
  16.         </ol>
  17.     </nav>
  18. {% endif %}