mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 08:26:03 +00:00
The VM and host charts named their series in English (Usage, Usage (RSS), Read, Write, Inbound, Outbound) and the new-VM form announced an applied preset as "...new N GiB disk" in English on Turkish and Chinese pages. The texts now come from the templates: the stats tab and host overview give the series names (disk and NIC series reuse In, Out, Read, Write of the readings line), and each preset button carries its own announcement. "Usage" has the context "chart": zh translated it for secrets as "used by". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
17 lines
1,018 B
HTML
17 lines
1,018 B
HTML
{% load i18n %}
|
|
<div id="presets">
|
|
{% if flavors %}
|
|
<div class="d-flex flex-wrap gap-2" role="group" aria-labelledby="presets-label" aria-describedby="presets_help">
|
|
{% for flavor in flavors %}
|
|
<button type="button" class="btn btn-sm border text-body focus-ring preset" aria-pressed="false"
|
|
data-label="{{ flavor.label }}" data-vcpu="{{ flavor.vcpu }}" data-memory="{{ flavor.memory }}" data-disk="{{ flavor.disk }}"
|
|
data-status="{% blocktrans with label=flavor.label vcpu=flavor.vcpu memory=flavor.memory disk=flavor.disk %}{{ label }}: {{ vcpu }} vCPU, {{ memory }} MiB, new {{ disk }} GiB disk{% endblocktrans %}">
|
|
<strong>{{ flavor.label }}</strong> · {{ flavor.vcpu }} vCPU · {{ flavor.memory }} MiB · {{ flavor.disk }} GiB
|
|
</button>
|
|
{% endfor %}
|
|
</div>
|
|
<div id="presets_help" class="form-text">{% trans "A preset fills vCPUs, memory and a new disk of its size." %}</div>
|
|
{% else %}
|
|
<p class="form-text mb-0">{% trans "No flavors yet." %}</p>
|
|
{% endif %}
|
|
</div>
|