{#- chirp-ui: Video Card component Thumbnail, duration badge, title, channel, views, date. Named slot: actions (overlay e.g. menu button on thumbnail). Usage: from "chirpui/video_card.html" import video_card call video_card(href="/watch/1", thumbnail="/thumb.jpg", duration="4:32", title="...") {% slot actions %}{% end %} end -#} {% def video_card(href, thumbnail, duration, title, channel=none, channel_href=none, views=none, date=none, cls="") %}
{{ title }} {{ duration }} {% slot actions %}

{{ title }}

{% if channel %}

{% if channel_href %} {{ channel }} {% else %} {{ channel }} {% end %}

{% end %} {% if views or date %}

{% if views %}{{ views }} views{% end %} {% if views and date %} · {% end %} {% if date %}{{ date }}{% end %}

{% end %}
{% end %}