{# Widget partial: Text/markdown content Expects: widget (dict), data (dict with columns/rows or None), widget_id (int), config (dict) #}
{% if config and config.markdown_content %}
{{ config.markdown_content }}
{% elif config and config.text %} {{ config.text }} {% elif data and data.rows and data.rows | length > 0 %} {{ data.rows[0][0] if data.rows[0] else "" }} {% else %} No content {% endif %}
{% if config and config.markdown_content %} {% endif %}