{% import "_macros.html" as m %} {% for s in items %} {% set is_local = s.type == 'local' %} {% endfor %}
NameTypeTargetScopeStatusUtilizationRequired
{% if s._implicit %}{{ s.name }}{% else %}{{ s.name }}{% endif %} {%- if is_local %} working copy{% endif %} {%- if s.name == default_name %} default{% endif %} {{ s.type }} {{ s.path or s.host or s.bucket or s.url or '—' }}{% if s.remote_path %} {{ s.remote_path }}{% endif %}{% if s.prefix %} {{ s.prefix }}{% endif %} {% if s.groups %}{{ m.chips(s.groups, 4, 'group') }}{% else %}all devices{% endif %} {{ m.latency_cell(s._sample, s._hist) }} {% if s._sample and s._sample.total_bytes %} {{ s._sample.used_bytes | filesize }} / {{ s._sample.total_bytes | filesize }}{% else %}{% endif %} {{ m.bool_check(s.required, 'Required', 'Optional') }} {% if not is_local and s.name != default_name %}{% endif %} {% if not s._implicit %}{{ m.icon_edit('/storage/' ~ (s.name|urlencode) ~ '/edit') }}{% endif %} {% if not is_local %}{{ m.icon_delete('/ui/storage/' ~ (s.name|urlencode) ~ '/delete', 'Delete storage destination “' ~ s.name ~ '”? Existing backups are untouched.', 'Delete destination') }}{% endif %}
{% if monitoring %}{{ m.live_poll('/ui/storage/rows', '#storage-result', 30) }}{% endif %}