1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 23:52:40 +01:00
BookStack/resources/views/partials/breadcrumbs.blade.php

19 lines
759 B
PHP

<div class="breadcrumbs">
@if (isset($book) && userCan('view', $book))
<a href="{{ $book->getUrl() }}" class="entity-chip text-book">
@icon('book'){{ $book->getShortName() }}
</a>
<div class="separator">@icon('chevron-right')</div>
@endif
@if(isset($chapter) && userCan('view', $chapter))
<a href="{{ $chapter->getUrl() }}" class="entity-chip text-chapter">
@icon('chapter'){{ $chapter->getShortName() }}
</a>
<div class="separator">@icon('chevron-right')</div>
@endif
@if(isset($page) && userCan('view', $page))
<a href="{{ $page->getUrl() }}" class="entity-chip text-page">
@icon('page'){{ $page->getShortName() }}
</a>
@endif
</div>