aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorfloppydiskette <floppydisk@hyprcat.net>2024-12-09 20:48:27 +0000
committerfloppydiskette <floppydisk@hyprcat.net>2024-12-09 20:48:27 +0000
commitfe433ae802dbe0e9be378f07668779aecde334d5 (patch)
treec69ddf6ac4f1a65994d8641467d3ba5c22c43292 /resources
parent20c16b790809fbc47d3a9972352eac96a7aa7b63 (diff)
Handle no image being returned by tinyfox.dev
Diffstat (limited to 'resources')
-rw-r--r--resources/views/components/wah.blade.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/resources/views/components/wah.blade.php b/resources/views/components/wah.blade.php
index cea770e..4312606 100644
--- a/resources/views/components/wah.blade.php
+++ b/resources/views/components/wah.blade.php
@@ -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>