mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ui: Use inline SVG icons for all spinners
Tests: - All the icons appear as before in both light/dark themes. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
928794ea1f
commit
53ee9c4ee2
7 files changed
+53
-21
No files matched your search
@@ -5,6 +5,7 @@
|
||||
|
||||
{% load bootstrap %}
|
||||
{% load i18n %}
|
||||
{% load plinth_extras %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
@@ -31,7 +32,7 @@
|
||||
{% trans "never" %}
|
||||
{% endif %}
|
||||
{% if device.scan_requested %}
|
||||
<span class="fa fa-spinner fa-spin"></span>
|
||||
{% icon 'spinner' class='svg-icon spin' %}
|
||||
{% endif %}
|
||||
</p>
|
||||
<div class="list-group list-group-two-column">
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
{% load bootstrap %}
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
{% load plinth_extras %}
|
||||
|
||||
{% block content %}
|
||||
<h3>{% trans "Distribution Update" %}</h3>
|
||||
@@ -26,16 +27,16 @@
|
||||
</p>
|
||||
|
||||
{% if status.running %}
|
||||
<div class="upgrades-dist-upgrade clearfix">
|
||||
<div class="upgrades-dist-upgrade-running-icon pull-left">
|
||||
<span class="fa fa-refresh fa-spin fa-3x fa-pull-left text-info"></span>
|
||||
<div class="upgrades-dist-upgrade d-flex align-items-center">
|
||||
<div class="upgrades-dist-upgrade-running-icon">
|
||||
{% icon 'refresh' class='svg-icon spin text-info' %}
|
||||
</div>
|
||||
<p>
|
||||
<div>
|
||||
{% blocktrans trimmed %}
|
||||
Distribution update is currently running. This operation may take
|
||||
several hours. Most apps will be unavailable during this period.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
{% if not status.updates_enabled or not status.dist_upgrade_enabled or not status.has_free_space or not status.current_codename %}
|
||||
|
||||
@@ -17,17 +17,17 @@
|
||||
</div>
|
||||
|
||||
<h3>{% trans "Status" %}</h3>
|
||||
<div class="upgrades-status-frame clearfix">
|
||||
<div class="upgrade-status-icon pull-left">
|
||||
<div class="upgrades-status-frame d-flex align-items-center">
|
||||
<div class="upgrades-status-icon">
|
||||
{% if is_busy %}
|
||||
<span class="fa fa-refresh fa-spin fa-3x fa-pull-left text-info"></span>
|
||||
{% icon 'refresh' class='svg-icon spin text-info' %}
|
||||
{% elif new_version %}
|
||||
<span class="fa fa-frown-o fa-3x fa-pull-left text-warning"></span>
|
||||
{% icon 'frown-o' class='svg-icon text-warning' %}
|
||||
{% else %}
|
||||
<span class="fa fa-smile-o fa-3x fa-pull-left text-body-tertiary"></span>
|
||||
{% icon 'smile-o' class='svg-icon text-body-tertiary' %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<p>
|
||||
<div>
|
||||
{% blocktrans trimmed %}
|
||||
You are running {{ os_release }} and {{ box_name }} version {{ version }}.
|
||||
{% endblocktrans %}
|
||||
@@ -41,7 +41,7 @@
|
||||
{% else %}
|
||||
{% blocktrans %}{{ box_name }} is up to date.{% endblocktrans %}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in new issue
Block a user