mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Update.
This commit is contained in:
parent
d37b398e79
commit
24ee78ccd8
@ -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()
|
||||||
{
|
{
|
||||||
$default = baseUrl('/default.png');
|
$default = baseUrl('/default.png');
|
||||||
$image = $this->image;
|
$image = $this->image;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
</h4>
|
</h4>
|
||||||
<div class="gallery-image">
|
<div class="gallery-image">
|
||||||
<a class="text-book entity-list-item-link" href="{{$book->getUrl()}}">
|
<a class="text-book entity-list-item-link" href="{{$book->getUrl()}}">
|
||||||
<img src="{{$book->getBookCover(192)}}" alt="{{$book->name}}">
|
<img src="{{$book->getBookCover()}}" alt="{{$book->name}}">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@if(isset($book->searchSnippet))
|
@if(isset($book->searchSnippet))
|
||||||
|
Loading…
Reference in New Issue
Block a user