]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/fireinfo/stats-memory.html
Introduce autotools
[ipfire.org.git] / src / templates / fireinfo / stats-memory.html
1 {% extends "../base.html" %}
2
3 {% block title %}{{ _("Memory") }}{% end block %}
4
5 {% block body %}
6 <div class="page-header">
7 <h1>{{ _("Memory") }}</h1>
8 </div>
9
10 <div class="row">
11 <div class="col-md-2 col-md-offset-2 ac">
12 <small class="text-muted">({{ _("minimum") }})</small>
13 <h3>{{ "%.0f" % (mem_min / 1024) }} {{ _("MB") }}</h3>
14 </div>
15 <div class="col-md-4 ac">
16 <small class="text-muted">({{ _("average") }})</small>
17 <h1 class="text-success">{{ "%.0f" % (mem_avg / 1024) }} {{ _("MB") }}</h1>
18 </div>
19 <div class="col-md-2 ac">
20 <small class="text-muted">({{ _("maximum") }})</small>
21 <h3>{{ "%.0f" % (mem_max / 1024) }} {{ _("MB") }}</h3>
22 </div>
23 </div>
24
25 <hr>
26
27 <dl class="dl-horizonal">
28 {% for amount, percentage in amounts %}
29 {% if percentage >= 0.01 %}
30 <dt>{{ _(">= %d MB") % amount }}</dt>
31 <dd>
32 {% if amount <= 256 %}
33 {% module ProgressBar(percentage, "danger") %}
34 {% elif amount >= 1024 %}
35 {% module ProgressBar(percentage, "success") %}
36 {% else %}
37 {% module ProgressBar(percentage, "warning") %}
38 {% end %}
39 </dd>
40 {% end %}
41 {% end %}
42 </dl>
43 {% end block %}