]> git.gir.st - subscriptionfeed.git/blob - app/youtube/templates/index.html.j2
move search bar out of header, implement way to include links in headerbar
[subscriptionfeed.git] / app / youtube / templates / index.html.j2
1 {% extends "base.html.j2" %}
2 {% import 'macros.imp.j2' as macros %}
3
4 {% block title %}Subscriptions {#for {{ current_user.name | e }}#}{% endblock %}
5
6 {% block content %}
7 {{ super() }}
8 <div class="cards">
9 {% for row in rows %}
10 {% call macros.card(row.video_id, row.title, row.published|format_date, row.pinned, row.video_id) %}
11 {{ macros.infobar_subscriptions(row.video_id, row.channel_id, row.author) }}
12 {% endcall %}
13 {% if row.pinned and not rows[loop.index].pinned %}
14 {{ macros.dummycard() }}
15 <hr>
16 {% endif %}
17 {% endfor %}
18 {{ macros.dummycard() }}
19 </div>
20
21 {% if not rows|length %}no more results{% endif %}
22
23 <p>
24 {% if page > 0 %}
25 <a href="?page={{ page-1 }}">newer</a> |
26 {% endif %}
27 {% if rows|length %}
28 <a href="?page={{ page+1 }}">older</a>
29 {% endif %}
30
31 {% endblock %}
32
33 {% block footer %}
34 <hr><a href="/manage/subscriptions">Manage Subscriptions</a>
35 {% endblock %}
Imprint / Impressum