{% extends 'base.html' %} {% comment %} # # This file is part of Plinth. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # {% endcomment %} {% load i18n %} {% block page_head %} {% if running %} {% endif %} {% endblock %} {% block content %}

{{ title }}

{% if result %} {% if result.return_code %}

{% trans "There was an error while upgrading." %}

{% trans "Output from unattended-upgrades:" %}
{{ result.error }}
{% if result.output %}
{{ result.output }}
{% endif %} {% else %}

{% trans "The operating system is up to date now.  " %}

{% trans "Output from unattended-upgrades:" %}
{{ result.output }}
{% endif %} {% endif %} {% if not result and not running %}

{% blocktrans trimmed %} This will run unattended-upgrades, which will attempt to upgrade your system with the latest Debian packages. It may take a few minutes to complete. {% endblocktrans %}

{% csrf_token %}
{% endif %} {% if running %}

{% trans "System is being upgraded." %}

{% endif %} {% endblock %} {% block page_js %} {% endblock %}