{% extends shell('app') %} {% block title %}{{ _('Storage') }}{% endblock %} {% block content %}

{{ _('Storage') }}

{% if not configured %}
{{ _('LAB_STORAGE_SSH_KEY is missing.') }}
{% elif report_error %}
{{ _('Could not read the disk usage: %(error)s', error=report_error) }}
{% elif disk %}

{{ _('Disk: %(used)s GB used of %(total)s GB (%(pct)s %%).', used='%.0f' % disk[1], total='%.0f' % disk[0], pct='%.0f' % (disk[1] / disk[0] * 100 if disk[0] else 0)) }}

{% endif %}

{{ _('Folders') }} {{ accounts|length }}

{% if accounts %}
{% for a in accounts %} {% endfor %}
{{ _('Person') }}{{ _('Folder') }}{{ _('Status') }}{{ _('Used') }}{{ _('Quota') }}
{{ a.user.email }} {{ folder_of(a) or '—' }}
uid {{ a.uid or '—' }}
{{ a.status_label }} {% if a.last_error %}
{{ a.last_error }}
{% endif %}
{% if a.uid in usage %}{{ '%.1f' % usage[a.uid] }} GB{% else %}—{% endif %} {% if a.is_ready %}
{{ quota_form.csrf_token }}
{% else %}{{ a.quota_gb }} GB{% endif %}
{% if not a.is_ready %}
{{ action_form.csrf_token }}
{% endif %}
{% else %}

{{ _('None.') }}

{% endif %} {% if without %}

{{ _('Accounts without a folder') }}

{% endif %} {% if orphans %}

{{ _('Orphans') }}

{% endif %} {% endblock %}