{% load i18n humanize %}

≡ {% trans "History" %}

{% trans "SQL you've run through the runner, newest first" %}

{% if commands %} {% endif %}
{% if commands %}
{% for c in commands %} {% endfor %}
{% trans "When" %} {% trans "Mode" %} {% trans "Statement" %} {% trans "Result" %} {% trans "Open" %}
{% blocktrans with t=c.created_at|timesince %}{{ t }} ago{% endblocktrans %} {% if c.read_only %} {% trans "read" %} {% else %} {% trans "write" %} {% endif %} {{ c.sql }} {% if c.status == 'error' %} {% trans "error" %} {% else %} {{ c.rowcount|intcomma }}r · {{ c.duration_ms }}ms {% endif %}
{% blocktrans count n=commands|length %}{{ n }} command shown (most recent 200){% plural %}{{ n }} commands shown (most recent 200){% endblocktrans %}
{% else %}

{% trans "No commands yet" %}

{% trans "Run something in the SQL panel and it'll show up here." %}

{% endif %}