]> git.gir.st - subscriptionfeed.git/blob - app/youtube/templates/index.html.j2
remove old commented out templating code
[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{% endblock %}
5
6 {% block content %}
7 {{ super() }}
8 <div class="cards">
9 {% for row in rows %}
10 {% set badge = 'LIVE' if row.livestream else 'SOON' if row.premiere else row.length|format_time %}
11 {% call macros.card(row.video_id, row.title, row.published|format_date, row.pinned, badge=badge) %}
12 {{ macros.infobar_subscriptions(row.video_id, row.channel_id, row.author) }}
13 {% endcall %}
14 {% endfor %}
15 {{ macros.dummycard() }}
16 </div>
17
18 {% if not rows|length %}no more results{% endif %}
19
20 <div class="pagination-container">
21 {{ macros.more({'page':page+1}) if rows|length }}
22 </div>
23
24 {% endblock %}
25
26 {% block footer %}
27 <hr><a href="/manage/subscriptions">Manage Subscriptions</a>
28 <a href="https://git.gir.st/subscriptionfeed.git" style="float:right">AGPLv3 Source Code</a>
29 {% endblock %}
Imprint / Impressum