mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-06 12:02:45 +03:00
Indentation correction.
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
'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>
|
||||||
|
Reference in New Issue
Block a user