{# 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, stream_url=false, report_url=false, report_kind="url", edit_url=false) -%}

{{ title }}

{% if conf and fav_type or sch_id or stream_url %}
{% 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 edit_url %} {{ fbtns.edit(edit_url, color="transparent") }} {% endif %}
{% endif %}
{%- endmacro %}