]> git.gir.st - subscriptionfeed.git/blob - app/invidious/templates/search.html.j2
implement shadowing invidious routes
[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 {% include 'messages.inc.j2' %}
11
12 <article>
13 <h1>{{ query | e }}</h1>
14 {% for row in rows %}{# TODO: switch-case for result type (video/playlist/channel); publishedText->published|format
15 #}{% call macros.card(row.videoId, row.title, row.publishedText) %}
16 {{ macros.infobar_subscriptions(row.videoId, row.authorId, row.author) }}
17 {% endcall %}{#
18 #}{% else %}
19 no more results.
20 {% endfor %}
21 </article>
22
23 {% if page > 1 %}
24 <a href="?page={{ page-1 }}">previous</a> |
25 {% endif %}
26 <a href="?page={{ page+1 }}">next</a>
27
28 <hr>
Imprint / Impressum