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='playlists') }}">playlists</a> |
22 <form method=get action="{{ url_for('browse.channel', channel_id=channel_id, subpage='search')}}">
23 <input class="search-channel" type=text name=q value="{{ request.args.get('q', '')}}" placeholder="search channel">
24 <!-- <input type="submit" value=">"> -->
27 {% if subpage != "search" %}
28 <div class="sort-order">
29 {% if subpage == "videos" %}
30 <a href="?sort=newest" {{ 'selected' if sort == 'newest' }}>newest first</a> |
31 <a href="?sort=popular" {{ 'selected' if sort == 'popular' }}>most popular</a>
32 {% elif subpage == "playlists" %}
33 <a href="?sort=newest" {{ 'selected' if sort == 'newest' }}>last created</a> |
34 <a href="?sort=modified" {{ 'selected' if sort == 'modified' }}>last modified</a>
40 {% for card in rows %}
41 {{ macros.typed_card(card) }}
43 {{ macros.dummycard() }}
46 {% if not rows|length %}no more results{% endif %}
48 <div class="pagination-container">
49 {{ macros.more({'continuation': continuation}) if continuation }}