{% load i18n %}
<table class="listing">
    <col />
    <col width="16%" />
    <thead>
        <tr class="table-headers">
            <th>
                {% if not is_searching %}
                    {# <a href="{% url 'customforms:index' %}{% if not ordering == "title" %}?ordering=title{% endif %}" class="icon icon-arrow-down-after {% if  ordering == "title" %}teal{% endif %}"> #}
                        {% trans "Title" %}
                    {# </a> #}
                {% else %}
                    {% trans "Title" %}
                {% endif %}
            </th>
            <th>
                {% if not is_searching %}
                    {# <a href="{% url 'customforms:index' %}{% if not ordering == "-created_at" %}?ordering=-created_at{% endif %}" class="icon icon-arrow-down-after {% if  ordering == "-created_at" %}teal{% endif %}"> #}
                        {% trans "Uploaded" %}
                    {# </a> #}
                {% else %}
                    {% trans "Uploaded" %}
                {% endif %}
            </th>
        </tr>
    </thead>
    <tbody>
        {% for form in forms %}
            <tr>
                <td class="title">
                    {% if choosing %}
                        <h2><a href="{% url 'customforms:form_chosen' form.id %}" class="form-choice">{{ form.title }}</a></h2>
                    {% else %}
                        <h2><a href="{% url 'customforms:edit' form.id %}">{{ form.title }}</a></h2>
                    {% endif %}
                </td>
                <td><div class="human-readable-date" title="{{ form.created_at|date:"d M Y H:i" }}">{% blocktrans with time_period=form.created_at|timesince %}{{ time_period }} ago{% endblocktrans %}</div></td>
            </tr>
        {% endfor %}
    </tbody>
</table>
