samba: fixes and improvements

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Veiko Aasa authored and James Valleroy committed 2019-12-01 11:30:35 -05:00
1 parent 598bcb6fbb
commit dbdd482e61
7 files changed
+137 -27

No files matched your search

+3 -3
View File
@@ -41,11 +41,11 @@ managed_packages = ['samba']
name = _('Samba')
short_description = _('Samba File Sharing')
short_description = _('File Sharing')
description = [
_('Samba allows to share files and folders between computers in your '
'local network.'),
_('Samba allows to share files and folders between FreedomBox and '
'other computers in your local network.'),
format_lazy(
_('After installation, you can choose which disks to use for sharing. '
'Enabled {hostname} shares are open to everyone in your local '
+9 -8
View File
@@ -35,11 +35,11 @@
{{ block.super }}
{% if is_enabled %}
<h3>{% trans "Select devices for sharing:" %}</h3>
<h3>{% trans "Select disks for sharing" %}</h3>
<p>
{% blocktrans trimmed %}
NB! Selecting device does not share the whole disk, only the folder
FreedomBox/shares/open_share will be shared on that disk.
NB! Only the directory FreedomBox/shares/open_share will be shared on
selected disks. The directory will be created if it doesn't exist.
{% endblocktrans %}
</p>
<table class="table table-bordered table-condensed table-striped">
@@ -71,7 +71,10 @@
<input type="hidden" value="{{ disk.filesystem_type }}"
name="filesystem_type">
<input type="checkbox" value="{{ disk.mount_point }}"
name="mount_point" autocomplete="off"/>
name="mount_point" autocomplete="off"
{% if disk.filesystem_type == 'vfat' %}
title='{% trans "vfat partitions are not supported" %}' disabled
{% endif %}/>
</form>
{% endif %}
</td>
@@ -102,11 +105,9 @@
</table>
{% if unavailable_shares %}
<h3>Shares configured but the disk is not available:</h3>
<h3>{% trans "Shares configured but the disk is not available" %}</h3>
<p>
{% blocktrans trimmed %}
If the disk is plugged back in, sharing will be automatically enabled.
{% endblocktrans %}
{% trans "If the disk is plugged back in, sharing will be automatically enabled." %}
</p>
<table class="table table-bordered table-condensed table-striped">
<thead>
+1
View File
@@ -36,6 +36,7 @@ class SambaAppView(views.AppView):
"""Samba sharing basic configuration."""
name = samba.name
description = samba.description
diagnostics_module_name = 'samba'
app_id = 'samba'
template_name = 'samba.html'