diff --git a/plinth/modules/restore/__init__.py b/plinth/modules/restore/__init__.py index d4cc31ddd..21bb030d4 100644 --- a/plinth/modules/restore/__init__.py +++ b/plinth/modules/restore/__init__.py @@ -16,7 +16,7 @@ # """ -Plinth module to configure reStore +Plinth module to configure reStore. """ from django.utils.translation import ugettext_lazy as _ @@ -31,14 +31,14 @@ depends = ['plinth.modules.apps'] def init(): - """Initialize the reStore module""" + """Initialize the reStore module.""" menu = cfg.main_menu.get('apps:index') - menu.add_urlname(_('Unhosted storage (reStore)'), 'glyphicon-hdd', + menu.add_urlname(_('Unhosted Storage (reStore)'), 'glyphicon-hdd', 'restore:index', 750) global service service = service_module.Service( - 'node-restore', _('reStore'), + 'node-restore', _('reStore'), ['http', 'https'], is_external=False, enabled=is_enabled()) diff --git a/plinth/modules/restore/templates/restore_index.html b/plinth/modules/restore/templates/restore_index.html index fdc4d6dd8..28369dbd1 100644 --- a/plinth/modules/restore/templates/restore_index.html +++ b/plinth/modules/restore/templates/restore_index.html @@ -23,14 +23,16 @@ {% block content %} -

{% trans "reStore" %}

+

{% trans "Unhosted Storage (reStore)" %}

{% blocktrans trimmed %} reStore is a server for unhosted web applications. The idea is to uncouple web applications from - the data, and thus the data can be stored on any unhosted - storage server. + data. No matter where a web application is served from, the + data can be stored on an unhosted storage server of user's + choice. With reStore, your {{ cfg.box_name }} becomes your + unhosted storage server. {% endblocktrans %}

diff --git a/plinth/modules/restore/urls.py b/plinth/modules/restore/urls.py index a111f78d0..1ed758ab5 100644 --- a/plinth/modules/restore/urls.py +++ b/plinth/modules/restore/urls.py @@ -16,7 +16,7 @@ # """ -URLs for the reStore module +URLs for the reStore module. """ from django.conf.urls import patterns, url diff --git a/plinth/modules/restore/views.py b/plinth/modules/restore/views.py index a41615f6e..e0c75fbd6 100644 --- a/plinth/modules/restore/views.py +++ b/plinth/modules/restore/views.py @@ -15,6 +15,10 @@ # along with this program. If not, see . # +""" +Plinth module for configuring reStore. +""" + from django.contrib import messages from django.template.response import TemplateResponse from django.utils.translation import ugettext as _ @@ -27,7 +31,6 @@ from plinth.modules import restore @package.required(['node-restore']) def index(request): """Serve configuration page.""" - status = get_status() if request.method == 'POST': @@ -40,7 +43,7 @@ def index(request): form = ReStoreForm(initial=status, prefix='restore') return TemplateResponse(request, 'restore_index.html', - {'title': _('Unhosted storage (reStore)'), + {'title': _('Unhosted Storage (reStore)'), 'status': status, 'form': form})