Mini Shell
{# vim: ts=2:sw=2:et:ft=jinja-html #}
{% extends "base.html.jinja" %}
{% from "bootstrap_macros.html.jinja" import header_card without context %}
{% block body %}
{% call header_card("Subscription") %}
<p>{{ reg_info }}</p>
{% if quota_gb is not none %}
{% if quota_gb <= 0 %}
<p>No backup subscription found</p>
{% else %}
{% if size_cache.stamp > 0.0 %}
<p>Usage: {{ (size_cache.total / 1024) | round(2) }} / {{ quota_gb }} GiB</p>
<p>Usage last calculated: {{ size_cache.time_str }}</p>
{% else %}
<p>Usage: ? / {{ quota_gb }} GiB</p>
<p>Usage not calculated yet</p>
{% endif %}
{% endif %}
{% endif %}
{% endcall %}
<div class="mb-3 mt-3">
{% call header_card("Config File") %}
{% if conf.errors %}
<p>Config file issues detected. Please correct these issues in the <a href="{{ url_for('config_page') }}">config tab</a>.</p>
<p>Issues:</p>
<ul>
{% for error in conf.errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% else %}
<p>No config file issues detected</p>
{% endif %}
{% endcall %}
</div>
{% call header_card("Monitoring") %}
{% if not errors %}
<p>No reported errors.</p>
{% endif %}
{% for name, error in errors.items() %}
<p><strong>{{ name.replace('_', ' ').title() }}</strong></p>
<p><pre>{{ error }}</pre></p>
{% endfor %}
{% endcall %}
{% endblock %}
Zerion Mini Shell 1.0