{# Macro data_table Uso: {% from "core/components/data_table.html" import data_table_open, tr_empty %} {% call data_table_open(cols=["App", "Versión", "Estado"]) %} {% for row in rows %} {{ row.name }} {{ row.version }} {{ badge(row.status) }} {% else %} {{ tr_empty("Sin datos", colspan=3) }} {% endfor %} {% endcall %} #} {% macro data_table_open(cols=[], extra_class="") %}
{%- for col in cols %} {%- endfor %} {{ caller() }}
{{ col }}
{%- endmacro %} {% macro tr_empty(message="Sin datos", colspan=1) %} {{ message }} {%- endmacro %}