mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-09-17 23:05:47 +00:00
Indentation correction.
This commit is contained in:
parent
144a6e469d
commit
d84315fff8
@ -18,7 +18,7 @@ class Book extends Entity
|
|||||||
return baseUrl('/books/' . urlencode($this->slug));
|
return baseUrl('/books/' . urlencode($this->slug));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getBookCover($size = 120)
|
public function getBookCover($size = 120)
|
||||||
{
|
{
|
||||||
$default = baseUrl('/default.png');
|
$default = baseUrl('/default.png');
|
||||||
$image = $this->image;
|
$image = $this->image;
|
||||||
@ -32,7 +32,7 @@ public function getBookCover($size = 120)
|
|||||||
return $cover;
|
return $cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function cover()
|
public function cover()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Image::class, 'image');
|
return $this->belongsTo(Image::class, 'image');
|
||||||
}
|
}
|
||||||
|
@ -10,20 +10,20 @@
|
|||||||
@include('form/textarea', ['name' => 'description'])
|
@include('form/textarea', ['name' => 'description'])
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group" id="logo-control">
|
<div class="form-group" id="logo-control">
|
||||||
<label for="user-avatar">{{ trans('common.cover_image') }}</label>
|
<label for="user-avatar">{{ trans('common.cover_image') }}</label>
|
||||||
<p class="small">{{ trans('common.cover_image_description') }}</p>
|
<p class="small">{{ trans('common.cover_image_description') }}</p>
|
||||||
|
|
||||||
@include('components.image-picker', [
|
@include('components.image-picker', [
|
||||||
'resizeHeight' => '192',
|
'resizeHeight' => '192',
|
||||||
'resizeWidth' => '120',
|
'resizeWidth' => '120',
|
||||||
'showRemove' => true,
|
'showRemove' => true,
|
||||||
'defaultImage' => baseUrl('/default.png'),
|
'defaultImage' => baseUrl('/default.png'),
|
||||||
'currentImage' => @isset($model) ? $model->getBookCover(80) : baseUrl('/default.png') ,
|
'currentImage' => @isset($model) ? $model->getBookCover(80) : baseUrl('/default.png') ,
|
||||||
'currentId' => @isset($model) ? $model->image : 0,
|
'currentId' => @isset($model) ? $model->image : 0,
|
||||||
'name' => 'image',
|
'name' => 'image',
|
||||||
'imageClass' => 'avatar cover'
|
'imageClass' => 'avatar cover'
|
||||||
])
|
])
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<a href="{{ isset($book) ? $book->getUrl() : baseUrl('/books') }}" class="button muted">{{ trans('common.cancel') }}</a>
|
<a href="{{ isset($book) ? $book->getUrl() : baseUrl('/books') }}" class="button muted">{{ trans('common.cancel') }}</a>
|
||||||
<button type="submit" class="button pos">{{ trans('entities.books_save') }}</button>
|
<button type="submit" class="button pos">{{ trans('entities.books_save') }}</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user