#75 - Numérotation de la tracklist

This commit is contained in:
Damien Broqua 2023-01-17 16:37:13 +01:00
parent d446735450
commit dff1d2baf0

View file

@ -20,16 +20,16 @@
<div> <div>
<template v-for="album in tracklist"> <template v-for="album in tracklist">
<strong v-if="album.title">{{album.title}}</strong> <strong v-if="album.title">{{album.title}}</strong>
<ol class="ml-4"> <ul>
<li v-for="track in album.tracks"> <li v-for="(track, index) in album.tracks" class="ml-4">
{{ track.title }} <template v-if="track.duration">({{track.duration}})</template> {{track.position || (index+1)}} - {{ track.title }} <template v-if="track.duration">({{track.duration}})</template>
<ul v-if="track.extraartists && track.extraartists.length > 0" class="sm-hidden ml-4"> <ul v-if="track.extraartists && track.extraartists.length > 0" class="sm-hidden">
<li v-for="extra in track.extraartists"> <li v-for="extra in track.extraartists" class=" ml-4">
<small>{{extra.role}} : {{extra.name}}</small> <small>{{extra.role}} : {{extra.name}}</small>
</li> </li>
</ul> </ul>
</li> </li>
</ol> </ul>
</template> </template>
</div> </div>
<div class="md:col-span-2"> <div class="md:col-span-2">