{% extends "base.html" %} {% import "macros/ui.html" as m %} {% block title %}{{ ws_name }} · vol {{ vol_id }}{% endblock %} {% block nav_workspaces %}btn-active{% endblock %} {% block content %} {{ m::ws_tabs(ws_name=ws_name, active=ws_active_tab, ws_envs=ws_envs, ws_has_clusters=ws_has_clusters, ws_has_workflows=ws_has_workflows, current_env=current_env) }} {% if volume %}

{{ volume.name }}

{{ volume.size }}GB {% if volume.status == "available" %} available {% elif volume.status == "creating" %} creating {% else %} {{ volume.status }} {% endif %}
Size
{{ volume.size }}GB
Location
{% if volume.location %}{{ volume.location.name }}{% else %}—{% endif %}
Format
{{ volume.format | default(value="—") }}
ID
{{ volume.id }}
Protection
{% if volume.protection and volume.protection.delete %} del {% else %}—{% endif %}
{% if volume.created %}
Created
{{ volume.created | truncate(length=10, end="") }}
{% endif %} {% if volume.linux_device %}
Device
{{ volume.linux_device }}
{% endif %}
{# ── attachment ──────────────────────────────────────────────────────── #}

Attachment

{% set srv_name = volume.server.name | default(value="") %} {% if srv_name %}
{% if volume.linux_device %}
device {{ volume.linux_device }}
{% endif %}
{% elif volume.server %} attached (id: {{ volume.server }}) {% else %} not attached {% endif %}
{% if volume.labels %}

Labels

{% for k, v in volume.labels %} {{ k }}={{ v }} {% endfor %}
{% endif %} {# ── provider live (hcloud describe) ──────────────────────────────────── #}

Provider · Hetzner Cloud live

name {{ volume.name }} id {{ volume.id }} status {% if volume.status == "available" %} {{ volume.status }} {% elif volume.status == "creating" %} {{ volume.status }} {% else %} {{ volume.status }} {% endif %} size {{ volume.size }}GB {% if volume.location %} location {{ volume.location.name }} {% if volume.location.description %}{{ volume.location.description }}{% endif %} {% endif %} {% if volume.format %} format {{ volume.format }} {% endif %} {% if volume.linux_device %} device {{ volume.linux_device }} {% endif %} {% set srv_name = volume.server.name | default(value="") %} {% if srv_name %} server {{ srv_name }} {% elif volume.server %} server id:{{ volume.server }} {% else %} server not attached {% endif %} {% if volume.labels %} labels {% for k, v in volume.labels %} {{ k }}={{ v }} {% endfor %} {% endif %} {% if volume.created %} created {{ volume.created | truncate(length=19, end="") }} {% endif %} protection {% if volume.protection and volume.protection.delete %} delete {% else %} none {% endif %}
{% else %}
Volume {{ vol_id }} not found or HCLOUD_TOKEN not set.
{% endif %}
← Back
{% endblock %}