{% 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 bootstrap %} {% load i18n %} {% block page_head %} {% if setup_helper.current_operation %} {% endif %} {% endblock %} {% block content %}

{% trans "Installation" %}: {{ setup_helper.module.title }}

{% for paragraph in setup_helper.module.description %}

{{ paragraph|safe }}

{% endfor %} {% if not setup_helper.current_operation %} {% if setup_helper.get_state == 'needs-setup' %}

{% blocktrans trimmed %} Install this application? {% endblocktrans %}

{% csrf_token %}
{% elif setup_helper.get_state == 'needs-update' %}

{% blocktrans trimmed %} This application needs an update. Update now? {% endblocktrans %}

{% csrf_token %}
{% endif %} {% else %} {% if setup_helper.current_operation.step == 'pre' %} {% trans "Performing pre-install operation" %} {% elif setup_helper.current_operation.step == 'post' %} {% trans "Performing post-install operation" %} {% elif setup_helper.current_operation.step == 'install' %} {% with transaction=setup_helper.current_operation.transaction %}
{% blocktrans trimmed with package_names=transaction.package_names|join:", " status=transaction.status_string %} Installing {{ package_names }}: {{ status }} {% endblocktrans %}
{% blocktrans trimmed with percentage=transaction.percentage %} {{ percentage }}% complete {% endblocktrans %}
{% endwith %} {% endif %} {% endif %} {% endblock %}