BookStack/resources/views/pages/_breadcrumbs.blade.php

14 lines
651 B
PHP
Raw Normal View History

<div class="breadcrumbs">
@if (userCan('view', $page->book))
2018-02-17 08:30:52 -05:00
<a href="{{ $page->book->getUrl() }}" class="text-book text-button">@icon('book'){{ $page->book->getShortName() }}</a>
<span class="sep">&raquo;</span>
@endif
@if($page->hasChapter() && userCan('view', $page->chapter))
<a href="{{ $page->chapter->getUrl() }}" class="text-chapter text-button">
2018-02-17 08:30:52 -05:00
@icon('chapter')
{{ $page->chapter->getShortName() }}
</a>
<span class="sep">&raquo;</span>
@endif
<a href="{{ $page->getUrl() }}" class="text-page text-button">@icon('page'){{ $page->getShortName() }}</a>
</div>