]> git.gir.st - subscriptionfeed.git/blob - app/youtube/templates/xmlfeed.html.j2
allow sorting by most popular for fallback route
[subscriptionfeed.git] / app / youtube / templates / xmlfeed.html.j2
1 {% extends "base.html.j2" %}
2 {% import 'macros.imp.j2' as macros %}
3 {% block title %}{{ title | e }}{% endblock %}
4
5 {% block content %}
6 <h1>{{ title }} <small>{{ macros.emoji_button("subscribe", channel_id, is_subscribed) if channel_id }}</small></h1>
7 <div id="subpages" style="text-align:right;margin:1em">
8 {% if channel_id %}
9 <a href="?sort=newest">newest first</a> |
10 <a href="?sort=popular">most popular</a>
11 {% endif %}
12 </div>
13 <div class="cards">
14 {% for row in rows %}
15 {% call macros.card(row.video_id, row.title, row.published|format_date) %}
16 {{ macros.infobar_subscriptions(row.video_id, row.channel_id, row.author) }}
17 {% endcall %}
18 {% endfor %}
19 {{ macros.dummycard() }}
20 </div>
21 </article>
22
23 {% if not rows|length %}no results{% endif %}
24 {% endblock %}
Imprint / Impressum