mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Update create new book button on shelves to 2019 design
This commit is contained in:
parent
d3cd369247
commit
84419005e7
@ -3,16 +3,26 @@
|
|||||||
@section('body')
|
@section('body')
|
||||||
<div class="container small">
|
<div class="container small">
|
||||||
<div class="my-s">
|
<div class="my-s">
|
||||||
@include('partials.breadcrumbs', ['crumbs' => [
|
@if (isset($bookshelf))
|
||||||
'/books' => [
|
@include('partials.breadcrumbs', ['crumbs' => [
|
||||||
'text' => trans('entities.books'),
|
$bookshelf,
|
||||||
'icon' => 'book'
|
$bookshelf->getUrl('/create-book') => [
|
||||||
],
|
'text' => trans('entities.books_create'),
|
||||||
'/create-book' => [
|
'icon' => 'add'
|
||||||
'text' => trans('entities.books_create'),
|
]
|
||||||
'icon' => 'add'
|
]])
|
||||||
]
|
@else
|
||||||
]])
|
@include('partials.breadcrumbs', ['crumbs' => [
|
||||||
|
'/books' => [
|
||||||
|
'text' => trans('entities.books'),
|
||||||
|
'icon' => 'book'
|
||||||
|
],
|
||||||
|
'/create-book' => [
|
||||||
|
'text' => trans('entities.books_create'),
|
||||||
|
'icon' => 'add'
|
||||||
|
]
|
||||||
|
]])
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content-wrap card">
|
<div class="content-wrap card">
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<p class="text-muted italic mt-xl mb-m">{{ trans('entities.shelves_empty_contents') }}</p>
|
<p class="text-muted italic mt-xl mb-m">{{ trans('entities.shelves_empty_contents') }}</p>
|
||||||
<div class="icon-list inline block">
|
<div class="icon-list inline block">
|
||||||
@if($currentUser->can('book-create-all'))
|
@if($currentUser->can('book-create-all'))
|
||||||
<a href="{{ $shelf->getUrl('/create-book') }}" class="icon-list-item text-bookshelf">
|
<a href="{{ $shelf->getUrl('/create-book') }}" class="icon-list-item">
|
||||||
<span class="icon">@icon('add')</span>
|
<span class="icon">@icon('add')</span>
|
||||||
<span>{{ trans('entities.books_create') }}</span>
|
<span>{{ trans('entities.books_create') }}</span>
|
||||||
</a>
|
</a>
|
||||||
@ -80,6 +80,13 @@
|
|||||||
<h5>{{ trans('common.actions') }}</h5>
|
<h5>{{ trans('common.actions') }}</h5>
|
||||||
<div class="icon-list text-primary">
|
<div class="icon-list text-primary">
|
||||||
|
|
||||||
|
@if($currentUser->can('book-create-all'))
|
||||||
|
<a href="{{ $shelf->getUrl('/create-book') }}" class="icon-list-item">
|
||||||
|
<span class="icon">@icon('add')</span>
|
||||||
|
<span>{{ trans('entities.books_create') }}</span>
|
||||||
|
</a>
|
||||||
|
@endif
|
||||||
|
|
||||||
@if(userCan('bookshelf-update', $shelf))
|
@if(userCan('bookshelf-update', $shelf))
|
||||||
<a href="{{ $shelf->getUrl('/edit') }}" class="icon-list-item">
|
<a href="{{ $shelf->getUrl('/edit') }}" class="icon-list-item">
|
||||||
<span>@icon('edit')</span>
|
<span>@icon('edit')</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user