]> git.gir.st - subscriptionfeed.git/blob - app/browse/templates/channel.html.j2
macros.pagination -> macros.more
[subscriptionfeed.git] / app / browse / templates / channel.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 <!--
7 <img height=200 align=left src="{{ channel_img[channel_img.largest] }}" style="margin:.5em">
8 -->
9 <h1>{{ title | e }} <small>{{ macros.emoji_button("subscribe", channel_id, is_subscribed) if channel_id }}</small></h1>
10 <details><summary>About</summary><p style="white-space: pre-wrap">{{ channel_desc }}</details>
11 <div style=clear:both></div>
12 <div id="subpages" style="display:flex;margin:1em">
13 <div style="flex:1">
14 <a href="{{ url_for('browse.channel', channel_id=channel_id, subpage='videos') }}">videos</a> |
15 <a href="{{ url_for('browse.channel', channel_id=channel_id, subpage='playlists') }}">playlists</a> |
16 <form method=get style="display:inline" action="{{ url_for('browse.channel', channel_id=channel_id, subpage='search')}}">
17 <input style="background:0;color:#eee;border:0" type=text name=q value="{{ request.args.get('q', '')}}" placeholder="search channel">
18 <!-- <input type="submit" value=">"> -->
19 </form>
20 </div>
21 {% if subpage != "search" %}
22 <form method=get style="flex:1;text-align:right" class="more-actions">
23 {% if subpage == "videos" %}
24 <label><input type=submit hidden name="sort" value="newest" {{ 'selected' if sort == 'newest' }}>newest first</label> |
25 <label><input type=submit hidden name="sort" value="oldest" {{ 'selected' if sort == 'oldest' }}>oldest first</label> |
26 <label><input type=submit hidden name="sort" value="popular" {{ 'selected' if sort == 'popular' }}>most popular</label>
27 {% elif subpage == "playlists" %}
28 <label><input type=submit hidden name="sort" value="newest" {{ 'selected' if sort == 'newest' }}>last created</label> |
29 <label><input type=submit hidden name="sort" value="modified" {{ 'selected' if sort == 'modified' }}>last modified</label>
30 {% endif %}
31 </form>
32 {% endif %}
33 </div>
34 <div class="cards">
35 {% for card in rows %}
36 {{ macros.typed_card(card) }}
37 {% endfor %}
38 {{ macros.dummycard() }}
39 </div>
40
41 {% if not rows|length %}no more results{% endif %}
42
43 <div class="pagination-container">
44 {{ macros.more({'continuation': continuation}) if continuation }}
45 </div>
46 {% endblock %}
Imprint / Impressum