]> git.gir.st - subscriptionfeed.git/blob - app/youtube/templates/index.html.j2
change pinned style
[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 {% endfor %}
15 {{ macros.dummycard() }}
16 </div>
17
18 {% if not rows|length %}no more results{% endif %}
19
20 <div class="pagination-container">
21 {% if page > 0 %}
22 {{ macros.pagination("newer", {'page':(-1,0)}, -1) }}
23 {% endif %}
24 {% if rows|length %}
25 {{ macros.pagination("older", {'page':(+1,0)}, +1) }}
26 {% endif %}
27 </div>
28
29 {% endblock %}
30
31 {% block footer %}
32 <hr><a href="/manage/subscriptions">Manage Subscriptions</a>
33 <a href="https://git.gir.st/subscriptionfeed.git" style="float:right">AGPLv3 Source Code</a>
34 {% endblock %}
Imprint / Impressum