{% load i18n sizeformat parse_date %} {% load url from future %}

{% trans "Share Overview" %}

{% trans "Info" %}


{% trans "Name" %}
{{ share.name }}
{% trans "ID" %}
{{ share.id }}
{% if share.description %}
{% trans "Description" %}
{{ share.description }}
{% endif %}
{% trans "Status" %}
{{ share.status|capfirst }}
{% trans "Export locations" %}
{% for el in share.export_locations %}
{{ el }}
{% endfor %} {% if share.snapshot_id %}
{% trans "Snapshot ID" %}
{% url 'horizon:project:shares:snapshot-detail' share.snapshot_id as snapshot_url%}
{{ share.snapshot_id }}
{% endif %}
{% trans "Visibility" %}
{% if share.is_public == True %}
{{ 'public' }}
{% else %}
{{ 'private' }}
{% endif %}

{% trans "Specs" %}


{% trans "Size" %}
{{ share.size }} {% trans "GB" %}
{% trans "Protocol" %}
{{ share.share_proto }}
{% if share.share_type %}
{% trans "Share type" %}
{{ share.share_type }}
{% endif %} {% if share.share_network_id %}
{% trans "Share network" %}
{% url 'horizon:project:shares:share_network_detail' share.share_network_id as sn_url%}
{{ share.share_network_id }}
{% endif %}
{% trans "Created" %}
{{ share.created_at|parse_date }}
{% trans "Host" %}
{{ share.host }}

{% trans "Access Rules" %}


{% for rule in share.rules %}
{{ rule.access_type }}
{{ rule.access_to }}
{% endfor %}

{% trans "Metadata" %}


{% for key, value in share.metadata.items %}
{{ key }}
{{ value }}
{% endfor %}