]> git.gir.st - subscriptionfeed.git/blob - app/invidious/templates/search.html.j2
/search using invidious api (very ugly)
[subscriptionfeed.git] / app / invidious / templates / search.html.j2
1 <!DOCTYPE html>
2 <title>{{ query | e }} &mdash; Search results</title>
3 <link rel="shortcut icon" href='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300" fill="%23fff"><circle r="150" cx="150" cy="150" fill="%23f00"/><path d="m120 97v106l93-53"/></svg>'>
4 <link rel="stylesheet" href="/static/style.css">
5
6 {% import 'macros.imp.j2' as macros with context %}
7
8 {{ macros.headerbar(search_query=query) }}
9
10 <article>
11 <h1>{{ query | e }}</h1>
12 {% for row in rows %}{# TODO: switch-case for result type (video/playlist/channel); publishedText->published|format
13 #}{% call macros.card(row.videoId, row.title, row.publishedText) %}
14 {{ macros.infobar_subscriptions(row.videoId, row.authorId, row.author) }}
15 {% endcall %}{#
16 #}{% else %}
17 no more results.
18 {% endfor %}
19 </article>
20
21 {% if page > 1 %}
22 <a href="?page={{ page-1 }}">previous</a> |
23 {% endif %}
24 <a href="?page={{ page+1 }}">next</a>
25
26 <hr>
Imprint / Impressum