{% extends "explorer/base.html" %}
{% load i18n %}

{% block sql_explorer_content %}
    <div class="container">
        <h3>{% translate "Favorite Queries" %}</h3>
        <table class="table table-striped query-list">
            <thead>
            <tr>
                <th>{% translate "Query" %}</th>
            </tr>
            </thead>

            <tbody>
            {% for favorite in favorites %}
                <tr>
                    <th>
                        <a href="{% url 'query_detail' favorite.query.id %}">{{ favorite.query.title }}</a>
                    </th>
                </tr>

                {% empty %}
                <tr>
                    <th>
                        {% translate "No favorite queries added yet." %}
                    </th>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
{% endblock %}
