]> git.gir.st - subscriptionfeed.git/blob - app/browse/templates/channel.html.j2
move inline styles to blueprint sheet
[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=oldest" {{ 'selected' if sort == 'oldest' }}>oldest 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