Dont show album art if url not defined
This commit is contained in:
parent
01cf40d1b8
commit
7ba32186cf
2 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'name' => env('APP_NAME', 'wah.moe'),
|
'name' => env('APP_NAME', 'wah.moe'),
|
||||||
'version' => '2025.08.30',
|
'version' => '2025.08.30-patch0',
|
||||||
'env' => env('APP_ENV', 'production'),
|
'env' => env('APP_ENV', 'production'),
|
||||||
'debug' => (bool) env('APP_DEBUG', false),
|
'debug' => (bool) env('APP_DEBUG', false),
|
||||||
'url' => env('APP_URL', 'http://localhost'),
|
'url' => env('APP_URL', 'http://localhost'),
|
||||||
|
|
|
@ -13,9 +13,11 @@
|
||||||
<br>
|
<br>
|
||||||
@else
|
@else
|
||||||
<div class="current-track">
|
<div class="current-track">
|
||||||
|
@if (isset($artUrl))
|
||||||
<div>
|
<div>
|
||||||
<img src="{{ $artUrl }}" alt="Album cover for {{ $track["title"] }} by {{ $track["artist"] }}">
|
<img src="{{ $artUrl }}" alt="Album cover for {{ $track["title"] }} by {{ $track["artist"] }}">
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
<div>
|
<div>
|
||||||
<h2>{{ $track["header"] }}:</h2>
|
<h2>{{ $track["header"] }}:</h2>
|
||||||
<a href="{{ $track["url"] }}"><font color="#000000">{{ $track["title"] }}</font></a><br>
|
<a href="{{ $track["url"] }}"><font color="#000000">{{ $track["title"] }}</font></a><br>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue