{% extends "app.html" %}
{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}

{% load bootstrap %}
{% load i18n %}

{% block configuration %}

  {% if pkg_manager_is_busy %}
    <div class="alert alert-danger">
    {% blocktrans trimmed %}
      Currently an installation or upgrade is running.
      Consider waiting until it's finished before shutting down or restarting.
    {% endblocktrans %}
    </div>
  {% endif %}

  <p>
    <a class="btn btn-default btn-md" href="{% url 'power:restart' %}">
      {% trans "Restart &raquo;" %}</a>

    <a class="btn btn-default btn-md" href="{% url 'power:shutdown' %}">
      {% trans "Shut Down &raquo;" %}</a>
  </p>

{% endblock %}
