]> git.gir.st - subscriptionfeed.git/blob - app/youtube/templates/index.html.j2
harmonize layout; headerbar macro
[subscriptionfeed.git] / app / youtube / templates / index.html.j2
1 <!DOCTYPE html>
2 <title>Subscriptions</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() }}
9
10 {% include 'messages.inc.j2' %}
11
12 <article>
13 <h1>Subscriptions <!-- for {{ current_user.name }} --></h1>
14 {% for row in rows %}{#
15 #}{% call macros.card(row.video_id, row.title, row.published|format_date, row.pinned) %}
16 {{ macros.infobar_subscriptions(row.video_id, row.channel_id, row.author) }}
17 {% endcall %}{#
18 #}{% if row.pinned and not rows[loop.index].pinned %}
19 <hr>
20 {% endif %}{#
21 #}{% endfor %}
22 </article>
23
24 {% if not rows|length %}no more results{% endif %}
25
26 {% if page > 0 %}
27 <a href="?page={{ page-1 }}&amp;{{ request.query_string.decode() | e }}">newer</a> |
28 {% endif %}
29 {% if rows|length %}
30 <a href="?page={{ page+1 }}&amp;{{ request.query_string.decode() | e }}">older</a>
31 {% endif %}
32
33 <hr><a href="/manage/subscriptions?{{ request.query_string.decode() | e }}">Manage Subscriptions</a>
34 | <a href="/feed/subreddits?{{ request.query_string.decode() | e }}">Reddit Feed</a>
Imprint / Impressum