{% if show_toolbar %}
{# bulk/search/export buttons here; use d_btn / d_search_input #}
{% endif %} {# choose '?' or '&' depending on whether sort_url already has a query #} {% set sep = '&' if '?' in (sort_url or '') else '?' %}
{% for col in columns %} {% endfor %} {% for row in rows %} {# compute the correct separator for the row URL #} {% set sep2 = '&' if '?' in (row_click.url or '') else '?' %} {% for col in columns %} {% set val = row.get(col.key, '') %} {% if primary_key and col.key == primary_key %} {% else %} {% endif %} {% endfor %} {% endfor %}
{% if col.sortable and sort_url %} {{ col.label }}{% if sort_key==col.key %} {{ '▲' if sort_dir=='asc' else '▼' }}{% endif %} {% else %} {{ col.label }} {% endif %}
{{ val|safe }}
{% if row.get(actions_key) %}
{{ row.get(actions_key)|safe }}
{% endif %}
{{ val|safe }}
{% if total and pages > 1 %} {% endif %}