8f15262d01
it now looks as good as the feed, the homepage and the favourites! :3 additionally, the search page now also mentions your search term, in case you suddenly decide to leave that tab alone for some reason and come back to it later, only to no longer know what you searched for lol
15 lines
587 B
HTML
15 lines
587 B
HTML
{{start ?query}}
|
|
<h1>Results for "{{.query}}"</h1>
|
|
<div style='display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));'>
|
|
{{start _results}}
|
|
<div class='video-image-container'>
|
|
<a href='watch?v={{.id}}'>
|
|
<div class='video-image' style='background-image: url(http://i.ytimg.com/vi/{{.id}}/mqdefault.jpg)'></div>
|
|
<b>{{.title}}</b></a><br>
|
|
Uploaded by <a href='/channel/{{.channel_id}}'>{{.channel}}</a> · <b>{{.runtime}}</b> · <b>{{.views}}</b> views
|
|
</div>
|
|
{{end _results}}
|
|
</div>
|
|
{{else ?query}}
|
|
<p>search for something will 'ya?</p>
|
|
{{end ?query}} |