{% extends "base.html" %} {% load i18n %} {% load bootstrap_icons %} {% block title %}{% trans "Storages" %} - {{ compute.name }}{% endblock %} {% block page_heading %}{{ compute.name }} - {% trans "Storages" %}{% endblock page_heading %} {% block page_heading_extra %}{% include 'create_stg_block.html' %}{% endblock page_heading_extra %} {% block content %}
{% include "computes/host_nav.html" with section="storages" %}
{% if not storages %}
{% bs_icon 'exclamation-triangle' %} {% trans "This host has no storage pools." %}
{% else %} {# a card per pool, as the host Overview's Hardware and Software cards #}
{% for pool in storages %}
{{ pool.name }} {% if pool.status %} {% trans "Active" %} {% else %} {% trans "Stopped" %} {% endif %} {% if pool.autostart %}{% trans "Autostart" %}{% endif %}
  • {% trans "Type" %} {{ pool.type|upper }}
  • {% trans "Path" %} {{ pool.path|default:"–" }}
  • {% trans "Volumes" %} {% if pool.status %}{{ pool.volumes }}{% else %}–{% endif %}
  • {# the space of what the pool stores in: its filesystem, volume group or cluster, which other pools may share #}
  • {% if pool.status and pool.size %} {% include "computes/pool_bar.html" with hide_name=True %} {% else %} {% if pool.status %}{% trans "No size" %}{% else %}{% trans "Space unavailable while stopped" %}{% endif %} {% endif %}
{% endfor %}
{% endif %} {% endblock %}