{% import "macros/datatable.html" as datatable %} {% import "macros/icons.html" as icons %} {% macro name_column(theme) %} {{ theme.name }} {% endmacro %} {% macro default_column(theme) %} {% if theme.default %} {{ icons.check('w-4 h-4') }} {% else %} {{ icons.x_mark('w-4 h-4') }} {% endif %} {% endmacro %} {% macro actions_column(theme) %}
{% endmacro %} {{ datatable.datatable( themes, count, datatable_query_parameters, "Themes", columns | map("get_column_macro") | list, ) }}