{% extends "bijoe/base.html" %}
{% load i18n %}

{% block breadcrumb %}
{% url 'homepage' as homepage_url %}
<a>{% trans "Homepage" %}</a>
{% endblock %}

{% block content %}
  {% if visualizations %}
    <h2>{% trans "Visualizations" %}</h2>
    <ul class="objects-list single-links bijoe-visualizations">
    {% for visualization in visualizations %}
         {% url 'visualization' pk=visualization.pk as visualization_url %}
         <li><a href="{{ visualization_url }}">{{ visualization.name }}</a></li>
    {% endfor %}
    </ul>
  {% endif %}
  {% if warehouses %}
    <h2>{% trans "Data sources" %}</h2>
    <ul class="objects-list single-links bijoe-warehouses">
      {% for warehouse in warehouses %}
         {% url 'warehouse' warehouse=warehouse.name as warehouse_url %}
         <li><a href="{{ warehouse_url }}">{{ warehouse.label }}</a></li>
      {% endfor %}
    </ul>
  {% endif %}
{% endblock %}
