1 {% macro headerbar(search_query="") -%}
8 <span style=float:left>
10 <b style=font-size:large><!--span style=font-family:serif>Δ</span-->delta</b>
13 {% if current_user.is_anonymous %}
14 <a href="/login" style=float:right>log in or sign up</a>
16 <span style=float:right>{{ current_user.name }} (<a href="/login">log out</a>)</span>
18 <form method=get action=/search>
19 <input name=q style="margin:auto;display:block;width:30em;box-sizing:border-box;border:0;background:#666;color:#eee;padding:.2em"
20 placeholder="Search (through invidio.us)" value="{{ search_query | e }}">
21 <input type=hidden name=provider value="invidio.us:443">
22 <!--input type=submit value="?"-->
27 {% macro card_generic(link, thumbnail, title='') -%}{#
29 <a class=thumb href="{{ link }}">
30 <img src="{{ thumbnail }}">
33 <a href="{{ link }}" title="{{ title | e }}">{{ title | e }}</a>
41 {% macro card(video_id, title='', advanced_text='', pinned="undefined") -%}{#
42 #}{% set caller_ = caller %}{#
43 #}{% call card_generic("/watch?v="~video_id, "https://i.ytimg.com/vi/"~video_id~"/mqdefault.jpg", title) %}
45 <details class=advanced><summary>{{ advanced_text }}</summary>
46 {% if pinned != "undefined" %}
48 <input type="hidden" name="{{ 'un' if pinned }}pin" value="{{ video_id }}">
49 <input class="emoji" type=submit value="📌️{{ '⃠' if pinned }}" title="{{ 'unpin' if pinned else 'pin to top' }}">
52 <input type="hidden" name="hide" value="{{ video_id }}">
53 <input class="emoji" type=submit value="💨️" title="hide video">
56 <a href="/watch?v={{ video_id }}&show=raw" class="emoji" title="raw video">🎞️</a>{#
57 #}<a href="/watch?v={{ video_id }}&show=json" class="emoji" title="json metadata">💡</a>
62 {% macro infobar_subscriptions(video_id, channel_id, author) -%}
63 <a href="/channel/{{ channel_id }}">{{ author | e }}</a>