Handle no image being returned by tinyfox.dev
This commit is contained in:
parent
20c16b7908
commit
fe433ae802
2 changed files with 10 additions and 3 deletions
|
|
@ -1,5 +1,10 @@
|
|||
<div class="wah">
|
||||
<h3>Random Wah!</h3>
|
||||
<img src="{{ $wah }}">
|
||||
<p>Image "stolen" from <a href="https://tinyfox.dev/">tinyfox.dev</a></p>
|
||||
@if ($wah !== "")
|
||||
<img src="{{ $wah }}" alt="Random image featuring a Red Panda">
|
||||
<p>Image "stolen" from <a href="https://tinyfox.dev/">tinyfox.dev</a></p>
|
||||
@else
|
||||
<img src="https://placehold.co/250x250" alt="250x250 Placeholder Image">
|
||||
<p>Unable to retrieve image</p>
|
||||
@endif
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue