]> git.gir.st - subscriptionfeed.git/blob - app/browse/templates/channel.html.j2
browse/channels: remove nonfunctional 'oldest' sorting
[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='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=">"> -->
25 </form>
26 </div>
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>
35 {% endif %}
36 </div>
37 {% endif %}
38 </div>
39 <div class="cards">
40 {% for card in rows %}
41 {{ macros.typed_card(card) }}
42 {% endfor %}
43 {{ macros.dummycard() }}
44 </div>
45
46 {% if not rows|length %}no more results{% endif %}
47
48 <div class="pagination-container">
49 {{ macros.more({'continuation': continuation}) if continuation }}
50 </div>
51 {% endblock %}
Imprint / Impressum