{# this macro needs to be included "with context" valid and accessable vars needed: request conf csrf_input #} {% import "plainui/components/function_btns.html" as fbtns with context %} {% macro title(title="", fav_id=false, fav_type=false, fav_is=false, sch_id=false, sch_is=false, share_url=false, stream_url=false, report_url=false, report_kind="url") -%}

{{ title }}

{% if conf %}
{% if share_url %} {{ fbtns.share(share_url, color="transparent") }} {% endif %} {% if fav_type and fav_id %} {{ fbtns.fav(fav_id, fav_type, fav_is, color="transparent") }} {% endif %} {% if sch_id %} {{ fbtns.schedule(sch_id, sch_is, color="transparent") }} {% endif %} {% if stream_url %} {{ fbtns.stream(stream_url, color="transparent") }} {% endif %} {% if report_url %} {{ fbtns.report(report_url, kind=report_kind, color="transparent") }} {% endif %}
{% endif %}
{%- endmacro %}