{% load django_sql_dashboard %}
{% if saved_dashboard %}
{{ result.sql }}
{% else %}{% endif %} {% if not saved_dashboard %}

{% endif %} {% if result.truncated %}

Results were truncated {% if user_can_export_data %} {% endif %}

{% endif %} {% if result.error %}

{{ result.error }}

{% endif %} {% for column in result.column_details %} {% endfor %} {% for row in result.row_lists %} {% for item in row %} {% endfor %} {% endfor %}
{{ column.name }}{% if user_can_execute_sql and column.is_unambiguous and not too_long_so_used_post %} [count]{% endif %}
{% if item is None %}- null -{% else %}{{ item|format_cell }}{% endif %}
Copy and export data {% if user_can_export_data %}
{% endif %}
{% if not saved_dashboard %}

{% endif %}

Duration: {{ result.duration_ms|floatformat:2 }}ms