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

{% block breadcrumb %}
  {% url 'homepage' as homepage_url %}
  {% url 'warehouse' warehouse=warehouse.name as warehouse_url %}
  {% url 'cube' warehouse=warehouse.name cube=cube.name as cube_url %}

  <a href="{{ homepage_url }}">{% trans "Homepage" %}</a>
  <a href="{{ warehouse_url }}">{{ warehouse.label }}</a>
  <a href="{{ cube_url }}">{{ cube.label }}</a>
<a>{{ object.name }}</a>
{% endblock %}

{% block actions %}
  <a rel="popup" class="button" href="{% url "rename-visualization" pk=object.pk %}">{% trans "Rename" %}</a>
  <a rel="popup" class="button" href="{% url "delete-visualization" pk=object.pk %}">{% trans "Delete" %}</a>
  <a rel="popup" class="button" href="{% url "visualization-ods" pk=object.pk %}">{% trans "Export as ODS" %}</a>
  <a href="{{ iframe_url }}" class="button">{% trans "URL for IFRAME" %}</a>
{% endblock %}

{% block buttons %}
{{ block.super }}
<input type="submit" name="save" value="{% trans "Save" %}"/>
{% endblock %}
