Incorporate feedback from MR

* change wording
* correct indentation
* correct typos
* disable update button
* use semantic tag
* reduce button size
* apply consistent id-naming

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Robert Martinez 2018-10-26 01:42:31 +02:00 committed by James Valleroy
parent 2bf766a589
commit 5edc1edcfb
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 9 additions and 9 deletions

View File

@ -35,7 +35,7 @@ managed_packages = ['unattended-upgrades']
name = _('Update')
description = [
_('Search for and apply the latest software and security updates. ')
_('Check for and apply the latest software and security updates. ')
]
service = None

View File

@ -39,24 +39,24 @@
<form class="form" method="post" action="{% url 'upgrades:upgrade' %}">
{% csrf_token %}
<input type="submit" class="btn btn-primary btn-lg"
value="{% trans "Update now" %}"/>
<input type="submit" class="btn btn-primary"
value="{% trans "Update now" %}"/>
</form>
</p>
{% endif %}
{% if is_busy %}
<p class="running-status-parent text-center btn btn-primary btn-lg">
<button type="button" disabled="disabled" class="running-status-parent btn btn-default" >
<span class="running-status loading"></span>
{% trans "Updating..." %}
</p>
</button>
{% endif %}
<p>
{% blocktrans trimmed %}
<b>This may take a long time to complete</b>. During an update, you
<strong>This may take a long time to complete</strong>. 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.
unavailable and show an error. In that case, refresh the page to continue.
{% endblocktrans %}
</p>
@ -64,11 +64,11 @@
{% if log %}
<p>
<a class="btn btn-default" role="button" data-toggle="collapse" href="#collapseLog" aria-expanded="false" aria-controls="collapseLog">
<a class="btn btn-default" role="button" data-toggle="collapse" href="#collapse-log" aria-expanded="false" aria-controls="collapse-log">
Toggle recent update logs
</a>
<div class="collapse" id="collapseLog">
<div class="collapse" id="collapse-log">
<pre>{{ log }}</pre>
</div>
</p>