root / snf-astakos-app / astakos / im / templates / im / resource_list.html @ bdc1c103
History | View | Annotate | Download (1.3 kB)
1 |
{% extends "im/account_base.html" %} |
---|---|
2 |
|
3 |
{% load filters %} |
4 |
|
5 |
{% block page.body %} |
6 |
<div class="maincol {% block innerpage.class %}{% endblock %}"> |
7 |
<div class="stats clearfix"> |
8 |
<ul>
|
9 |
{% for r in data %} |
10 |
{% with resource_presentation|lookup:r.name as resource_info %} |
11 |
<li class="clearfix {{ r.load_class }} {{ r.name|get_value_after_dot}}"> |
12 |
<div class="img-wrap"> </div> |
13 |
<div class="info"> |
14 |
<h3>{{ resource_info.report_desc }}</h3> |
15 |
<p>
|
16 |
{{ r.ratio|floatformat }}% Used<br>
|
17 |
You are using |
18 |
{% if r.unit == 'bytes' %} |
19 |
{{ r.currValue|sizeof_fmt }} out of your {{ r.maxValue|sizeof_fmt }} |
20 |
{% else %} |
21 |
{{ r.currValue }} {{ r.unit }} out of your {{ r.maxValue }} {{ r.unit }} |
22 |
{% endif %} |
23 |
|
24 |
{% if resource_info.is_abbreviation %}{{ r.name|get_value_after_dot|upper }}{% else %}{{ r.name|get_value_after_dot }}{% endif %}{% if r.maxValue|floatformat:"0" != "1" and not r.unit %}s {% endif %} |
25 |
|
26 |
</p>
|
27 |
</div>
|
28 |
<div class="bar"> |
29 |
<div><span style="width:{{ r.ratio|floatformat }}%;">{{ r.ratio|floatformat }}% </span></div> |
30 |
</div>
|
31 |
</li>
|
32 |
{% endwith %} |
33 |
{% endfor %} |
34 |
</ul>
|
35 |
</div>
|
36 |
</div>
|
37 |
{% endblock %} |