{% extends "wagtailadmin/pages/index.html" %}
{% load wagtailadmin_tags i18n %}

{% block extra_js %}
  {{ block.super }}

  <style>
  .title_type_learningcontent {
    border-left: 2px solid #41B5FA;
    padding-left: 16px !important;
  }

  .title_type_learningunit {
    border-left: 2px solid #41B5FA;
    padding-left: 16px !important;
  }

  </style>

  <script defer src="/server/core/icons/"></script>

  <script type="text/javascript">
  if (document.location.href.endsWith('/')) {
    // add ?ordering=ord as default ordering
    console.log('redirect');
    document.location.replace(document.location.href + '?ordering=ord');
  }
  </script>
{% endblock %}
