src/AppBundle/Resources/views/Layouts/inc/breadcrumb.html.twig line 1

Open in your IDE?
  1. {% if pages is defined %}
  2.     {% set last_p_text = '' %}
  3.     {% for item in pages %}
  4.         {% if pages|length-1 != loop.index or loop.index < 2 %}
  5.             <li>
  6.                 <span class="divider">&nbsp;//&nbsp;</span>
  7.                 {% if not loop.last %}
  8.                 <a href="{{ item.uri != null ? item.uri : '#' }}">
  9.                     {% endif %}
  10.                     <span>
  11.                     {{ last_p_text != null ? last_p_text ~ ':' : '' }}
  12.                         {{ item }}
  13.                 </span>
  14.                     {% if not loop.last %}
  15.                 </a>
  16.                 {% endif %}
  17.             </li>
  18.         {% else %}
  19.             {% set last_p_text = item %}
  20.         {% endif %}
  21.     {% endfor %}
  22. {% endif %}