{{ outcome.kind }} {{ t("results.rows", n=outcome.total) }} {% if outcome.truncated %}({{ t("results.rows_shown", n=outcome.rows|length) }}){% endif %} {% if outcome.detail and outcome.rows and outcome.rows[0].edit_statement %} {% endif %}
{% if not outcome.rows %}
{{ t("results.empty") }}
{% elif outcome.detail %} {# A principal carries far more attributes than fit side by side, so the single row is transposed into key and value pairs. #}
{% for column in outcome.columns %} {% set value = outcome.rows[0].values[loop.index0] %} {{ "" if value is none else value }} {% endfor %}
{{ t("results.key") }} {{ t("results.value") }}
{{ column }}
{% else %}
{% for column in outcome.columns %}{% endfor %} {% for row in outcome.rows %} {% for value in row.values %} {{ "" if value is none else value }} {% endfor %} {% endfor %}
{{ t("results.actions") }}{{ column }}
{% if row.edit_statement %} {% endif %}
{% endif %}