show songs practiced

practiced-songs
Matthew Huntington 6 months ago
parent 225c9d5e20
commit 1efb99d2a0

@ -31,26 +31,26 @@
<table> <table>
<thead> <thead>
<tr> <tr>
<th>id</th>
<th>description</th> <th>description</th>
<th>seconds</th> <th>duration</th>
<th>songs</th>
<th>comments</th> <th>comments</th>
<th>created at</th> <th>created at</th>
<th>category id</th>
<th>category</th>
<th>instrument</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="session in categorySessions"> <tr v-for="session in categorySessions">
<td>{{session.id}}</td>
<td @click="copy">{{session.description}}</td> <td @click="copy">{{session.description}}</td>
<td @click="copy">{{formatSeconds(session.seconds)}}</td> <td @click="copy">{{formatSeconds(session.seconds)}}</td>
<td>
<ul>
<li v-for="song in session.songs">
{{song.title}}
</li>
</ul>
</td>
<td @click="copy">{{session.comments}}</td> <td @click="copy">{{session.comments}}</td>
<td>{{session.created_at}}</td> <td>{{new Date(session.created_at).toLocaleString("en-US")}}</td>
<td>{{session.category_id}}</td>
<td>{{session.category}}</td>
<td>{{session.instrument}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

Loading…
Cancel
Save