]> git.gir.st - subscriptionfeed.git/blob - app/youtube/templates/index.html.j2
add link to source 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 {#for {{ current_user.name | e }}#}{% endblock %}
5
6 {% block content %}
7 {{ super() }}
8 <div class="cards">
9 {% for row in rows %}
10 {% set badge = 'LIVE' if row.livestream else row.length|format_time %}
11 {% call macros.card(row.video_id, row.title, row.published|format_date, row.pinned, row.video_id, badge=badge) %}
12 {{ macros.infobar_subscriptions(row.video_id, row.channel_id, row.author) }}
13 {% endcall %}
14 {% if row.pinned and (rows|length>loop.index and not rows[loop.index].pinned) %}
15 {{ macros.dummycard() }}
16 <hr>
17 {% endif %}
18 {% endfor %}
19 {{ macros.dummycard() }}
20 </div>
21
22 {% if not rows|length %}no more results{% endif %}
23
24 <div class="pagination-container">
25 {% if page > 0 %}
26 {{ macros.pagination("newer", {'page':(-1,0)}, -1) }}
27 {% endif %}
28 {% if rows|length %}
29 {{ macros.pagination("older", {'page':(+1,0)}, +1) }}
30 {% endif %}
31 </div>
32
33 {% endblock %}
34
35 {% block footer %}
36 <hr><a href="/manage/subscriptions">Manage Subscriptions</a>
37 <a href="https://git.gir.st/subscriptionfeed.git" style="float:right">AGPLv3 Source Code</a>
38 {% endblock %}
Imprint / Impressum