mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
Update module terminology improvements
"Update" is universally applied as the term for upgrade/update/unattended upgrade/... as agreed on #1376 . Changes also include simplifcation of text and interface, too. Code may still need to be updated. This commit only touches on visibile text. Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
e2584be45d
commit
2bf766a589
@ -32,12 +32,10 @@ is_essential = True
|
|||||||
|
|
||||||
managed_packages = ['unattended-upgrades']
|
managed_packages = ['unattended-upgrades']
|
||||||
|
|
||||||
name = _('Software Upgrades')
|
name = _('Update')
|
||||||
|
|
||||||
description = [
|
description = [
|
||||||
_('Upgrades install the latest software and security updates. When '
|
_('Search for and apply the latest software and security updates. ')
|
||||||
'automatic upgrades are enabled, upgrades are automatically run every '
|
|
||||||
'night. You don\'t normally need to start the upgrade process.')
|
|
||||||
]
|
]
|
||||||
|
|
||||||
service = None
|
service = None
|
||||||
|
|||||||
@ -26,7 +26,5 @@ from django.utils.translation import ugettext_lazy as _
|
|||||||
class ConfigureForm(forms.Form):
|
class ConfigureForm(forms.Form):
|
||||||
"""Configuration form to enable/disable automatic upgrades."""
|
"""Configuration form to enable/disable automatic upgrades."""
|
||||||
auto_upgrades_enabled = forms.BooleanField(
|
auto_upgrades_enabled = forms.BooleanField(
|
||||||
label=_('Enable automatic upgrades'), required=False,
|
label=_('Enable auto-update'), required=False,
|
||||||
help_text=_('When enabled, the unattended-upgrades program will be run '
|
help_text=_('When enabled, FreedomBox automatically updates once a day.'))
|
||||||
'once per day. It will attempt to perform any package '
|
|
||||||
'upgrades that are available.'))
|
|
||||||
|
|||||||
@ -34,37 +34,47 @@
|
|||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
|
|
||||||
<p>
|
|
||||||
{% blocktrans trimmed %}
|
|
||||||
Depending on the number of packages to install, this may take a long time
|
|
||||||
to complete. While upgrades are in progress, you will not be able to
|
|
||||||
install other packages. During the upgrade, this web interface may be
|
|
||||||
temporarily unavailable and show an error. Refresh the page to continue.
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
{% if not is_busy %}
|
{% if not is_busy %}
|
||||||
|
<p>
|
||||||
<form class="form" method="post" action="{% url 'upgrades:upgrade' %}">
|
<form class="form" method="post" action="{% url 'upgrades:upgrade' %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
<input type="submit" class="btn btn-primary"
|
<input type="submit" class="btn btn-primary btn-lg"
|
||||||
value="{% trans "Upgrade now »" %}"/>
|
value="{% trans "Update now" %}"/>
|
||||||
</form>
|
</form>
|
||||||
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if is_busy %}
|
{% if is_busy %}
|
||||||
<p class="running-status-parent">
|
<p class="running-status-parent text-center btn btn-primary btn-lg">
|
||||||
<span class="running-status loading"></span>
|
<span class="running-status loading"></span>
|
||||||
{% trans "A package manager is running." %}
|
{% trans "Updating..." %}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<p>
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
<b>This may take a long time to complete</b>. During an update, you
|
||||||
|
can not install apps. Also, this web interface may be temporarily
|
||||||
|
unavailable and show an error. In that case refresh the page to continue.
|
||||||
|
{% endblocktrans %}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% if log %}
|
{% if log %}
|
||||||
<h5>{% trans "Recent log from upgrades:" %}</h5>
|
<p>
|
||||||
|
<a class="btn btn-default" role="button" data-toggle="collapse" href="#collapseLog" aria-expanded="false" aria-controls="collapseLog">
|
||||||
|
Toggle recent update logs
|
||||||
|
</a>
|
||||||
|
|
||||||
<pre>{{ log }}</pre>
|
<div class="collapse" id="collapseLog">
|
||||||
|
<pre>{{ log }}</pre>
|
||||||
|
</div>
|
||||||
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_js %}
|
{% block page_js %}
|
||||||
@ -80,4 +90,3 @@
|
|||||||
<script type="text/javascript" src="{% static 'theme/js/refresh.js' %}"></script>
|
<script type="text/javascript" src="{% static 'theme/js/refresh.js' %}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|||||||
@ -33,10 +33,10 @@ from .forms import ConfigureForm
|
|||||||
|
|
||||||
subsubmenu = [{
|
subsubmenu = [{
|
||||||
'url': reverse_lazy('upgrades:index'),
|
'url': reverse_lazy('upgrades:index'),
|
||||||
'text': ugettext_lazy('Automatic Upgrades')
|
'text': ugettext_lazy('Auto-update')
|
||||||
}, {
|
}, {
|
||||||
'url': reverse_lazy('upgrades:upgrade'),
|
'url': reverse_lazy('upgrades:upgrade'),
|
||||||
'text': ugettext_lazy('Upgrade Packages')
|
'text': ugettext_lazy('Manual update')
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user