{% extends "app.html" %} {% comment %} # # This file is part of FreedomBox. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # {% endcomment %} {% load bootstrap %} {% load i18n %} {% load static %} {% block page_head %} {% endblock %} {% block configuration %} {{ block.super }} {% if is_enabled %}

{% trans "Select disks for sharing" %}

{% blocktrans trimmed %} Note: only specially created directory will be shared on selected disks, not the whole disk. {% endblocktrans %}

{% for disk in disks %} {% endfor %}
{% trans "Device" %} {% trans "Label" %} {% trans "Mount Point" %} {% trans "Type" %} {% trans "Used" %}
{% if disk.mount_point in shared_mounts %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %}
{{ disk.device }} {{ disk.label|default_if_none:"" }} {{ disk.mount_point }} {{ disk.filesystem_type }}
{% if disk.percent_used < 75 %}
{{ disk.percent_used }}%
{{ disk.used_str }} / {{ disk.size_str }}
{% if unavailable_shares %}

{% trans "Shares configured but the disk is not available" %}

{% trans "If the disk is plugged back in, sharing will be automatically enabled." %}

{% for share in unavailable_shares %} {% endfor %}
{% trans "Share name" %} {% trans "Action" %}
{{ share.name }}
{% csrf_token %}
{% endif %} {% endif %} {% endblock %} {% block page_js %} {% endblock %}