Added breadcrumb draft

This commit is contained in:
Kevin Frantz 2019-02-25 22:08:00 +01:00
parent 6a9e9db8d8
commit 8c9ae85463
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="{{ path('homepage') }}">infinito</a>
</li>
<li class="breadcrumb-item active" >api</li>
<li class="breadcrumb-item active" >rest</li>
<li class="breadcrumb-item active" >{{ layer|trans }}</li>
{% if entity is defined %}
<li class="breadcrumb-item active" aria-current="page">#{{ entity.id }}</li>
{% endif %}
<li class="breadcrumb-item active" >{{ app.request.getRequestFormat() }}</li>
</ol>
</nav>

View File

@ -20,6 +20,7 @@
:{% include "element/link/_layer_read_link.html.twig" with {'id':entity.getId(),'layer':layer,'slug':((entity.hasSlug() is defined and entity.hasSlug())?entity.getSlug():null)} %}
{% endif %}
</h1>
{% include "element/breadcrumb/_layer_breadcrumb.html.twig" %}
{% if action_template_data_store_service.getAllStoredData().count() > 0 %}
<div id="accordion">
{% set aria_expanded = 'true' %}