Update lastfm list formatting
This commit is contained in:
parent
53c0cd3712
commit
d7b9a738ad
1 changed files with 2 additions and 6 deletions
|
@ -11,15 +11,11 @@
|
||||||
<h1>Last.fm <small>(<a href="https://www.last.fm/user/{{ $cfg['user']}}">Profile</a>)</small></h1>
|
<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>
|
<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>
|
<h2>Top {{ $cfg['toptracks'] }} Tracks (Last 7 days)</h2>
|
||||||
<ol>
|
|
||||||
@foreach ($toptracks as $track)
|
@foreach ($toptracks as $track)
|
||||||
@if ($count >= $cfg['toptracks'])
|
@if ($count >= $cfg['toptracks'])
|
||||||
</ol>
|
|
||||||
@break
|
@break
|
||||||
@endif
|
@endif
|
||||||
<li>
|
{{ str_pad($count+1, 2, '0', STR_PAD_LEFT) }}] <a href="{{ $track->url }}">{{ $track->name }} • {{ $track->artist }}</a>
|
||||||
<a href="{{ $track->url }}">{{ $track->name }} • {{ $track->artist }}</a>
|
<small>({{ $track->plays }} plays)</small><br/>
|
||||||
<small>({{ $track->plays }} plays)</small>
|
|
||||||
</li>
|
|
||||||
@php $count++ @endphp
|
@php $count++ @endphp
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
Loading…
Reference in a new issue