{% extends "base.html.j2" %} {% import 'macros.imp.j2' as macros %} {% block title %}{{ title | e }} — {{ author | e }}{% endblock %} {% block content %}

{{ title | e }}
{{ author | e }}

{# TODO: copy pasted from dangerous/search.j2 #} {% for card in rows %} {% set c = card.content %} {% if card.type == 'VIDEO' %} {% call macros.card(c.video_id, c.title, c.length) %} {{ macros.infobar_subscriptions(c.video_id, c.channel_id, c.author) }} {{ c.published if c.published }}  {% endcall %} {% elif card.type == 'CHANNEL' and c.channel_id != channel_id %} {% call macros.card_generic("/channel/"~c.channel_id, c.icons[c.icons.largest] if 'icons' in c else '', c.title) %} Channel {{ c.subscribers }} {% endcall %} {% elif card.type == 'PLAYLIST' %} {% call macros.card_generic("/playlist?list="~c.playlist_id, "https://i.ytimg.com/vi/"~c.video_id~"/mqdefault.jpg", c.title) %} {{ c.author }} {{ c.n_videos }} videos {% endcall %} {% elif card.type == 'WEBSITE' %} {% call macros.card_generic(c.url, c.icons[c.icons.largest] if 'icons' in c else '', c.title) %} {{ c.domain }} {% endcall %} {% endif %} {% endfor %} {{ macros.dummycard() }}
{% if not rows|length %}no more results{% endif %}
{% if page is not none %} {% if page > 1 %} {{ macros.pagination("previous", {'page':(-1,1)}, -1) }} {% endif %} {{ macros.pagination("next", {'page':(+1,1)}, +1) }} {% endif %}
{% endblock %}