{% extends "admin/base_site.html" %}
{% load i18n admin_static %}

{% block title %}{{ title }}{% endblock %}

{% if not is_popup %}
  {% block breadcrumbs %}
    {% if crumbs %}
      {% if suit %}
        <ul class="breadcrumbs">
          {% for crumb in crumbs %}
            <li {% if forloop.last %}class="active"{% endif %}>
              {% if not forloop.first %}<span class="divider">&rsaquo;</span>{% endif %}
              <a {% if not forloop.last and crumb.url %}href="{% url crumb.url %}"{% endif %}>{{ crumb.name }}</a>
            </li>
          {% endfor %}
        </ul>
      {% else %}
        <div class="breadcrumbs">
          {% for crumb in crumbs %}
            {% if forloop.last %}
              {{ crumb.name }}
            {% else %}
              <a href="{% url crumb.url %}">{{ crumb.name }}</a>
            {% endif %}
            {% if not forloop.last %}&rsaquo;{% endif %}
          {% endfor %}
        </div>
      {% endif %}
    {% endif %}
  {% endblock %}
{% endif %}

{% block extrastyle %}
  {{ block.super }}
  <link href="{% static 'suit_dashboard/base.css' %}" rel="stylesheet">
  {% block dashboard_css %}{% endblock %}
{% endblock %}

{% block extrajs %}
  {{ block.super }}
  {% block dashboard_js %}{% endblock %}
{% endblock %}

{% block content %}
  {% for row in dashboard_grid.rows %}
    {% include "suit_dashboard/row.html" %}
  {% endfor %}
{% endblock %}
