summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-01-11 15:46:08 +0100
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-01-13 11:36:46 +0100
commit4777fcaee68ba5aca9b4270d6946ca6e62934cfb (patch)
treed69879042df92da78467d5469b07e6885ca8f36b
parent09498a8887587df0096bcab5ffee62c757d38ae2 (diff)
Add gettext to dashboard strings
Otherwise, this texts could not be translated.
-rw-r--r--ogcp/templates/dashboard.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html
index 4774804..bf2fa09 100644
--- a/ogcp/templates/dashboard.html
+++ b/ogcp/templates/dashboard.html
@@ -6,7 +6,7 @@
<div class="col-{{ colsize }}">
<div class="card text-center">
<div class="card-header">
- Connected clients (ogClient)
+ {{ _('Connected clients (ogClient)') }}
</div>
<div class="card-body">
<p class="card-text">{{ clients['clients'] | length }}</p>
@@ -18,7 +18,7 @@
<div class="col-{{ colsize }}">
<div class="card text-center">
<div class="card-header">
- Latest images
+ {{ _('Latest images') }}
</div>
{% for image in images[:10] %}
<ul class="list-group list-group-horizontal">
@@ -37,22 +37,22 @@
<div class="col-{{ colsize }}">
<div class="card text-center">
<div class="card-header">
- Disk stats
+ {{ _('Disk stats') }}
</div>
<div class="card-body">
<canvas id="diskChart" class="mb-2"></canvas>
<ul class="list-group list-group-horizontal">
<li class="list-group-item w-50">
- Disk size
+ {{ _('Disk size') }}
</li>
<li class="list-group-item w-50">
- used
+ {{ _('used') }}
</li>
<li class="list-group-item w-50">
- available
+ {{ _('available') }}
</li>
<li class="list-group-item w-50">
- use(%)
+ {{ _('use') }}(%)
</li>
</ul>
<ul class="list-group list-group-horizontal">
@@ -71,7 +71,7 @@
</ul>
</div>
<div class="card-header">
- Number of images
+ {{ _('Number of images') }}
</div>
<div class="card-body">
<p class="card-text">{{ images | length }}</p>
@@ -90,7 +90,7 @@
<li class="list-group-item">
{{ oglive['directory'] }}
{% if loop.index0 == oglive_list['default'] %}
- (default)
+ ({{ _('default') }})
{% endif %}
</li>
{% endfor %}