Add speed profiles to limit the bandwidth of each peer

This commit is contained in:
Eduardo Silva
2026-11-24 17:05:13 -03:00
parent 026c82445b
commit 3f2da7e545
35 changed files with 1538 additions and 25 deletions
+3 -1
View File
@@ -78,7 +78,9 @@
<tr>
<td><code>{{ section.name }}</code></td>
<td>
{% if section.state == 'synced' %}<span class="badge badge-success">{% trans 'Synchronized' %}</span>
{% if section.state == 'synced' and section.warning %}<span class="badge badge-warning">{% trans 'Synchronized with warnings' %}</span>
<br><small class="text-warning text-break">{{ section.warning|truncatechars:300 }}</small>
{% elif section.state == 'synced' %}<span class="badge badge-success">{% trans 'Synchronized' %}</span>
{% elif section.state == 'error' %}<span class="badge badge-danger">{% trans 'Error' %}</span>
{% else %}<span class="badge badge-secondary">{% trans 'Pending' %}</span>{% endif %}
{% if section.message %}<br><small class="text-muted text-break">{{ section.message|truncatechars:300 }}</small>{% endif %}
+5
View File
@@ -150,6 +150,11 @@
{% empty %}
<span class="text-muted">-</span>
{% endfor %}
{% if worker.operational and worker.warnings.section_warnings %}
<br><small class="text-warning" title="{{ worker.warnings.section_warnings|join:', ' }}">
<i class="fas fa-exclamation-triangle"></i> {% trans 'Synchronized with warnings' %}
</small>
{% endif %}
{% if worker.operational and worker.warnings.certificate_issues %}
<br><small class="text-warning" title="{{ worker.warnings.certificate_issues|join:', ' }}">
<i class="fas fa-certificate"></i> {% trans 'Certificates unavailable or expiring soon' %}