{% extends "explorer/base.html" %} {% load explorer_tags i18n static %} {% block sql_explorer_content %}
{% csrf_token %}
{% if connection_count == 0 %}

Welcome to SQL Explorer!

First things first, in order to create queries and start exploring, you'll need to:

Create a Connection

Need help? Check out the documentation{% if hosted %} or contact support{% endif %}.

{% elif object_list|length == 0 %}

Time to create a query

You have {{ connection_count }} connection{% if connection_count > 1 %}s{% endif %} created, now get cracking!

Create a Query or Play Around

Need help? Check out the documentation{% if hosted %} or contact support{% endif %}.

{% else %} {% if recent_queries|length > 0 %}

{% translate "Recently Run by You" %}

{% for object in recent_queries %} {% endfor %}
{% translate "Query" %} {% translate "Last Run" %} CSV
{{ object.query.title }} {{ object.run_at|date:"SHORT_DATETIME_FORMAT" }}
{% endif %}

{% translate "All Queries" %}

{% if tasks_enabled %} {% endif %} {% if can_change %} {% endif %} {% for object in object_list %} {% if object.is_header %} {% else %} {% if tasks_enabled %} {% endif %} {% if can_change %} {% endif %} {% endif %} {% endfor %}
{% translate "Query" %} {% translate "Created" %}{% translate "Email" %}{% translate "CSV" %}{% translate "Play" %} {% translate "Delete" %}{% translate "Favorite" %} {% translate "Last Run" %} {% translate "Run Count" %} {% translate "Connection" %}
{{ object.title }} ({{ object.count }}) {{ object.title }} {{ object.created_at|date:"m/d/y" }} {% if object.created_by_user %} {% blocktranslate trimmed with cuser=object.created_by_user %} by {{cuser}} {% endblocktranslate %} {% endif %} {% query_favorite_button object.id object.is_favorite 'query_favorite_toggle' %} {% if object.ran_successfully %} {% elif object.ran_successfully is not None %} {% endif %} {{ object.last_run_at|date:"m/d/y" }} {{ object.run_count }} {{ object.connection_name }}
{% endif %} {% endblock %}