aboutsummaryrefslogtreecommitdiff
path: root/resources/views/components
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2023-07-04 01:14:17 +0100
committerFrankie B <git@diskfloppy.me>2023-07-04 01:14:17 +0100
commitd7b9a738ad7b78de92e9b84dec41958c63d11ba5 (patch)
tree13cbf6ccadbc89b52440f425517121d1f3f27815 /resources/views/components
parent53c0cd371212e5439ae78629126b8036ff87ccef (diff)
Update lastfm list formatting
Diffstat (limited to 'resources/views/components')
-rw-r--r--resources/views/components/lastfm.blade.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/resources/views/components/lastfm.blade.php b/resources/views/components/lastfm.blade.php
index 75ec064..a44afc5 100644
--- a/resources/views/components/lastfm.blade.php
+++ b/resources/views/components/lastfm.blade.php
@@ -11,15 +11,11 @@ $count = 0;
<h1>Last.fm <small>(<a href="https://www.last.fm/user/{{ $cfg['user']}}">Profile</a>)</small></h1>
<b>Last/Current Track:</b> <a href="{{ $current_track->url }}">{{ $current_track->name }} • {{ $current_track->artist }}</a>
<h2>Top {{ $cfg['toptracks'] }} Tracks (Last 7 days)</h2>
- <ol>
@foreach ($toptracks as $track)
@if ($count >= $cfg['toptracks'])
- </ol>
@break
@endif
- <li>
- <a href="{{ $track->url }}">{{ $track->name }} • {{ $track->artist }}</a>
- <small>({{ $track->plays }} plays)</small>
- </li>
+ {{ str_pad($count+1, 2, '0', STR_PAD_LEFT) }}] <a href="{{ $track->url }}">{{ $track->name }} • {{ $track->artist }}</a>
+ <small>({{ $track->plays }} plays)</small><br/>
@php $count++ @endphp
@endforeach