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

{% block page-title %}
{% trans "Statistics" %} - {{ warehouse.label }}
{% endblock %}

{% block breadcrumb %}
{% url 'homepage' as homepage_url %}
<a href="{{ homepage_url }}">{% trans "Homepage" %}</a>
<a>{{ warehouse.label }}</a>
{% endblock %}

{% block content %}
  <table class="bijoe-table bijoe-form-table main">
    <thead>
      <tr>
        <th class="bijoe-form-label">{% trans "Name" %}</th>
        <th class="bijoe-form-count">{% trans "Fact count" %}</th></tr>
    </thead>
    <tbody>
      {% for cube in cubes %}
        {% url 'cube' warehouse=warehouse.name cube=cube.name as cube_url %}
        <tr>
          <td class="bijoe-form-label"><a href="{{ cube_url }}">{{ cube.label }}</a></td>
          <td class="bijoe-form-count">{{ cube.count }}</td>
        </tr>
      {% endfor %}
    </tbody>
  </table>
{% endblock %}
