mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
More user-friendly output of an upgrade run
This commit is contained in:
parent
4a19dcc807
commit
836ddd4a59
@ -23,13 +23,40 @@
|
|||||||
<h2>{{title}}</h2>
|
<h2>{{title}}</h2>
|
||||||
|
|
||||||
{% if upgrades_error %}
|
{% if upgrades_error %}
|
||||||
<p>There was an error while upgrading:<p>
|
<div class="alert alert-danger" role="alert">
|
||||||
|
There was an error while upgrading:
|
||||||
|
</div>
|
||||||
<pre>{{ upgrades_error }}</pre>
|
<pre>{{ upgrades_error }}</pre>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if upgrades_output %}
|
{% if upgrades_output %}
|
||||||
<p>Output from unattended-upgrades:</p>
|
<div class="row">
|
||||||
<pre>{{ upgrades_output }}</pre>
|
<div class="col-lg-6">
|
||||||
|
<div class="alert alert-success" role="alert">
|
||||||
|
The operating system is up to date now.
|
||||||
|
<button type="button" class="btn btn-default show-details" style='display:none'>
|
||||||
|
Show Details
|
||||||
|
<div class="caret"></div>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="details">
|
||||||
|
<h5>Output from unattended-upgrades:</h5>
|
||||||
|
<pre>{{ upgrades_output }}</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block page_js %}
|
||||||
|
<script>
|
||||||
|
$('.show-details').show();
|
||||||
|
$('.details').hide();
|
||||||
|
$('.show-details').click(function() {
|
||||||
|
$('.details').toggle("slow");
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user