{% if display_columns and display_rows %} {% set row = display_rows[0] %}
{% for column, cell in zip(display_columns, row) %} {% set raw = cell.raw %} {% set is_text = raw is string %} {% set is_empty = raw is none or (is_text and raw == "") %} {% set copyable = not is_empty and (is_text or raw is number) %} {% set is_long = is_text and (raw|length > 400 or raw.count("\n") > 6) %} {% set expand_label = "Show all {:,} characters".format(raw|length) if is_long else "" %}
{#- after underscores lets long snake_case names wrap between words #} {{ (column.name|e)|replace("_", "_"|safe) }} {% if column.description %}{{ column.description }}{% endif %}
{#- Labels are CSS generated content so copying a section of the page leaves them out #} {% if raw is none %} {% elif is_text and raw == "" %} {% elif is_long %}
{{ cell.value }}
{% else %}
{{ cell.value }}
{% endif %} {% if copyable %} {% endif %}
{% endfor %}

{% endif %} {% if not display_rows %}

0 records

{% endif %}