]>
Commit | Line | Data |
---|---|---|
66862195 | 1 | {% extends "../base.html" %} |
140172cf MT |
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"> | |
66862195 MT |
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> | |
140172cf MT |
22 | </div> |
23 | </div> | |
66862195 MT |
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> | |
140172cf | 43 | {% end block %} |