bashtube/templates/themes/default-v2/playlist.html
4 raccoons in a trenchcoat. / luna vivian 1cf900de0c fix bug where the playlist won't show in /watch page
fixes issue #16
2023-04-20 12:25:54 +02:00

17 lines
759 B
HTML

{{start ?playlist}}
<h1>Playlist "{{.playlistname}}"</h1>
<div style='display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));'>
{{start _playlist}}
<div class='video-image-container'>
<a href='watch?v={{.id}}&playlist={{.playlist}}'>
<div class='video-image' style='background-image: url(http://i.ytimg.com/vi/{{.id}}/mqdefault.jpg)'></div>
<b>{{.title}}</b></a>
</div>
{{end _playlist}}
</div>
{{else ?playlist}}
<h1>First of all, how did you get here?!</h1>
<p>Second of all, you need to give me a playlist ID, so that I know what playlist to look for. :p<br>
<i>(If you did supply one, then something went south in the backend. Sorry about that.)</i></p>
<p><a href="/">Go back to the home page</a></p>
{{end ?playlist}}