]> git.gir.st - subscriptionfeed.git/blob - app/youtube/templates/xmlfeed.html.j2
awful hack to align last row of cards
[subscriptionfeed.git] / app / youtube / templates / xmlfeed.html.j2
1 <!DOCTYPE html>
2 <title>{{ title }}</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>{{ title }} <small>{{ macros.emoji_button("subscribe", channel_id, is_subscribed) if channel_id }}</small></h1>
14 <div class="cards">
15 {% for row in rows %}
16 {% call macros.card(row.video_id, row.title, row.published|format_date) %}
17 {{ macros.infobar_subscriptions(row.video_id, row.channel_id, row.author) }}
18 {% endcall %}
19 {% if row.pinned and not rows[loop.index].pinned %}
20 {{ macros.dummycard() }}
21 <hr>
22 {% endif %}
23 {% endfor %}
24 {{ macros.dummycard() }}
25 </div>
26 </article>
27
28 {% if not rows|length %}no more results{% endif %}
29
30 {% if 'list' in request.args %}
31 <a href="?list={{ request.args.get('list') }}&amp;page=1">more</a>
32 {% else %}
33 <a href="?page=1">more</a>
34 {% endif %}
Imprint / Impressum