{% extends "ui/panels/_base.html" %}
{% load helpers %}
{% load i18n %}

{% block panel_content %}
  <ul class="list-group list-group-flush" role="presentation">
    {% for column_name, ascending in object.ordering_items %}
      <li class="list-group-item">
        {% with column=columns|get_key:column_name %}
          {% if ascending %}
            <i class="mdi mdi-arrow-down-thick"></i>
          {% else %}
            <i class="mdi mdi-arrow-up-thick"></i>
          {% endif %}
          {{ column.verbose_name }}
        {% endwith %}
      </li>
    {% empty %}
      <li class="list-group-item text-muted">{% trans "Default" %}</li>
    {% endfor %}
  </ul>
{% endblock panel_content %}
