{% extends "admin/base_site.html" %}
{% load i18n admin_urls static admin_modify widgets %}

{% block extrahead %}
  {{ block.super }}
  <link rel="stylesheet" href="{% static 'admin/css/dashboard.css' %}">
  {% include "admin/includes/dashboard_styles.html" %}
{% endblock %}

{% block bodyclass %}{{ block.super }} dashboard{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
  <a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
  &rsaquo; {{ app_label|capfirst }}
</div>
{% endblock %}

{% block nav-breadcrumbs %}{% endblock %}
{% block nav-sidebar %}{% endblock %}

{% block content %}
{% if app_list %}
  <div class="dashboard admin-app-dashboard">
    <div id="content-main" class="dashboard-main dashboard-main--app">
      {% for app in app_list %}
        {% render_widgets 'application' app=app %}
      {% endfor %}

      {% include "admin/dashboard_app_list.html" with app_list=app_list show_changelinks=True show_favorites=False %}
    </div>
    <div class="dashboard-side" id="app-dashboard-sidebar" aria-hidden="true"></div>
  </div>
{% else %}
  <p>{% translate "You don't have permission to edit anything." %}</p>
{% endif %}
{% endblock %}
