Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / templates / im / resource_list.html @ 12269b45

History | View | Annotate | Download (1 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">&nbsp;</div>
13
                            <div class="info">
14
                                    <h3>{{ resource_info.report_desc }}</h3>
15
                                    <p>
16
                                            {{ r.ratio|floatformat }}% Used<br>
17
                                            You are using {{ r.currValue }} {{ r.unit }} out of your {{ r.maxValue }} {{ r.unit }} {% if resource_info.is_abbreviation %}{{ r.name|get_value_after_dot|upper }}{% else %}{{ r.name|get_value_after_dot }}{% endif %}{% if not r.unit %}s {% endif  %} 
18
                                    </p>
19
                            </div>
20
                            <div class="bar">
21
                                    <div><span style="width:{{ r.ratio|floatformat }}%;">{{ r.ratio|floatformat }}% &nbsp;&nbsp;</span></div>
22
                            </div>
23
                    </li>
24
                    {% endwith %}
25
                    {% endfor %}
26
            </ul>
27
    </div>    
28
</div>
29
{% endblock %}