From d7b9a738ad7b78de92e9b84dec41958c63d11ba5 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Tue, 4 Jul 2023 01:14:17 +0100 Subject: Update lastfm list formatting --- resources/views/components/lastfm.blade.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'resources/views/components') 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;

Last.fm (Profile)

Last/Current Track: {{ $current_track->name }} • {{ $current_track->artist }}

Top {{ $cfg['toptracks'] }} Tracks (Last 7 days)

-
    @foreach ($toptracks as $track) @if ($count >= $cfg['toptracks']) -
@break @endif -
  • - {{ $track->name }} • {{ $track->artist }} - ({{ $track->plays }} plays) -
  • + {{ str_pad($count+1, 2, '0', STR_PAD_LEFT) }}] {{ $track->name }} • {{ $track->artist }} + ({{ $track->plays }} plays)
    @php $count++ @endphp @endforeach -- cgit v1.2.3-54-g00ecf