{#- chirp-ui: Latest line Compact activity/jump metadata with optional actor and tooltip detail. -#} {% from "chirpui/tooltip.html" import tooltip %} {% def latest_line(label, href, title, actor=none, actor_href=none, meta=none, detail=none, cls="") %} {% set _detail = detail if detail is not none else (((("by " ~ actor) if actor else "") ~ ((" - " ~ meta) if meta else ""))) %}
{{ label }} {% if _detail %} {% call tooltip(title ~ " - " ~ _detail, position="top", cls="chirpui-latest-line__tooltip") %} {{ title }} {% end %} {% else %} {{ title }} {% end %} {% if actor or meta %} {% if actor %} by {% if actor_href %} {{ actor }} {% else %} {{ actor }} {% end %} {% end %} {% if actor and meta %}{% end %} {% if meta %}{{ meta }}{% end %} {% end %}
{% end %}