mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
- Ensure that .sr-only is replaced with newer classes. - Ensure that icons are present for all alerts. - Use flex-box for display of icons on the left center of the alert. - .close has been renamed to .btn-close. - × is no longer required for close buttons. Tests: - Visually verify all the changes by triggering them with code changes. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
35 lines
962 B
HTML
35 lines
962 B
HTML
{% 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 d-flex align-items-center">
|
|
<div class="me-2">
|
|
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
|
|
<span class="visually-hidden">{% trans "Caution:" %}</span>
|
|
</div>
|
|
<div>
|
|
{% blocktrans trimmed %}
|
|
Currently an installation or upgrade is running.
|
|
Consider waiting until it's finished before shutting down or restarting.
|
|
{% endblocktrans %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="btn-toolbar">
|
|
<a class="btn btn-default btn-md" href="{% url 'power:restart' %}">
|
|
{% trans "Restart" %}</a>
|
|
|
|
<a class="btn btn-default btn-md" href="{% url 'power:shutdown' %}">
|
|
{% trans "Shut Down" %}</a>
|
|
</div>
|
|
|
|
{% endblock %}
|