2018-12-10 00:51:31 +08:00
|
|
|
<div class="breadcrumbs text-center">
|
2019-01-13 23:54:55 +08:00
|
|
|
<?php $breadcrumbCount = 0; ?>
|
|
|
|
@foreach($crumbs as $key => $crumb)
|
|
|
|
@if (is_null($crumb))
|
|
|
|
<?php continue; ?>
|
|
|
|
@endif
|
|
|
|
@if ($breadcrumbCount !== 0)
|
|
|
|
<div class="separator">@icon('chevron-right')</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (is_string($crumb))
|
|
|
|
<a href="{{ baseUrl($key) }}">
|
|
|
|
{{ $crumb }}
|
|
|
|
</a>
|
2019-02-17 19:44:02 +08:00
|
|
|
@elseif (is_array($crumb))
|
2019-02-18 01:52:42 +08:00
|
|
|
<a href="{{ baseUrl($key) }}" class="icon-list-item">
|
|
|
|
<span>@icon($crumb['icon'])</span>
|
|
|
|
<span>{{ $crumb['text'] }}</span>
|
2019-02-17 19:44:02 +08:00
|
|
|
</a>
|
|
|
|
@elseif($crumb instanceof \BookStack\Entities\Entity)
|
2019-02-18 01:52:42 +08:00
|
|
|
<a href="{{ $crumb->getUrl() }}" class="text-{{$crumb->getType()}} icon-list-item">
|
|
|
|
<span>@icon($crumb->getType())</span>
|
|
|
|
<span>{{ $crumb->getShortName() }}</span>
|
2019-01-13 23:54:55 +08:00
|
|
|
</a>
|
|
|
|
@endif
|
|
|
|
<?php $breadcrumbCount++; ?>
|
|
|
|
@endforeach
|
2018-11-11 21:11:36 +08:00
|
|
|
</div>
|