1 {% extends "base.html.j2" %}
2 {% import 'macros.imp.j2' as macros %}
6 <link rel="stylesheet" href="{{ url_for('browse.static', filename="style.css") }}">
9 {% block title %}{{ title | e }}{% endblock %}
13 <img height=200 align=left src="{{ channel_img[channel_img.largest] }}" style="margin:.5em">
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>
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=">"> -->
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>
41 {% for card in rows %}
42 {{ macros.typed_card(card) }}
44 {{ macros.dummycard() }}
47 {% if not rows|length %}no more results{% endif %}
49 <div class="pagination-container">
50 {{ macros.more({'continuation': continuation}) if continuation }}