]> git.gir.st - subscriptionfeed.git/blob - app/browse/templates/channel.html.j2
browse: implement channel livesteams subpage
[subscriptionfeed.git] / app / browse / templates / channel.html.j2
1 {% extends "base.html.j2" %}
2 {% import 'macros.imp.j2' as macros %}
3
4 {% block favicon %}
5 {{ super() }}
6 <link rel="stylesheet" href="{{ url_for('browse.static', filename="style.css") }}">
7 {% endblock %}
8
9 {% block title %}{{ title | e }}{% endblock %}
10
11 {% block content %}
12 <!--
13 <img height=200 align=left src="{{ channel_img[channel_img.largest] }}" style="margin:.5em">
14 -->
15 <h1>{{ title | e }} <small>{{ macros.emoji_button("subscribe", channel_id, is_subscribed) if channel_id }}</small></h1>
16 <details><summary>About</summary><p style="white-space: pre-wrap">{{ channel_desc }}</details>
17 <div style=clear:both></div>
18 <div id="subpages">
19 <div class="subpages">
20 <a href="{{ url_for('browse.channel', channel_id=channel_id, subpage='videos') }}">videos</a> |
21 <a href="{{ url_for('browse.channel', channel_id=channel_id, subpage='streams') }}">livestreams</a> |
22 <a href="{{ url_for('browse.channel', channel_id=channel_id, subpage='playlists') }}">playlists</a> |
23 <form method=get action="{{ url_for('browse.channel', channel_id=channel_id, subpage='search')}}">
24 <input class="search-channel" type=text name=q value="{{ request.args.get('q', '')}}" placeholder="search channel">
25 <!-- <input type="submit" value=">"> -->
26 </form>
27 </div>
28 {% if subpage != "search" %}
29 <div class="sort-order">
30 {% if subpage in ("videos", "streams") %}
31 <a href="?sort=newest" {{ 'selected' if sort == 'newest' }}>newest first</a> |
32 <a href="?sort=popular" {{ 'selected' if sort == 'popular' }}>most popular</a>
33 {% elif subpage == "playlists" %}
34 <a href="?sort=newest" {{ 'selected' if sort == 'newest' }}>last created</a> |
35 <a href="?sort=modified" {{ 'selected' if sort == 'modified' }}>last modified</a>
36 {% endif %}
37 </div>
38 {% endif %}
39 </div>
40 <div class="cards">
41 {% for card in rows %}
42 {{ macros.typed_card(card) }}
43 {% endfor %}
44 {{ macros.dummycard() }}
45 </div>
46
47 {% if not rows|length %}no more results{% endif %}
48
49 <div class="pagination-container">
50 {{ macros.more({'continuation': continuation}) if continuation }}
51 </div>
52 {% endblock %}
Imprint / Impressum