Added 'Sort Book' action to chapters

Related to #2335
This commit is contained in:
Dan Brown
2022-07-26 12:35:50 +01:00
parent d4a119b2aa
commit bd14dc067b
3 changed files with 21 additions and 0 deletions

View File

@ -147,6 +147,14 @@
</a>
@endif
@if($chapter->book && userCan('book-update', $chapter->book))
<hr class="primary-background"/>
<a href="{{ $chapter->book->getUrl('/sort') }}" class="icon-list-item">
<span>@icon('sort')</span>
<span>{{ trans('entities.chapter_sort_book') }}</span>
</a>
@endif
<hr class="primary-background"/>
@if(signedInUser())