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

b/snf-astakos-app/astakos/im/templates/im/resource_list.html
7 7
    <div class="stats clearfix">
8 8
		<ul>
9 9
			{% for r in data %}
10
			 
11
    		<li class="clearfix  {{ r.load_class }} {{ r.name}}">
10
			{% with resource_presentation|lookup:r.name as resource_info %}
11
    		<li class="clearfix  {{ r.load_class }} {{ r.name|get_value_after_dot}}">
12 12
    			<div class="img-wrap">&nbsp;</div>
13 13
    			<div class="info">
14
    				<h3>{{ r.description }}</h3>
14
    				<h3>{{ resource_info.report_desc }}</h3>
15 15
    				<p>
16 16
    					{{ r.ratio|floatformat }}% Used<br>
17
    					You are using {{ r.currValue }} {{ r.unit }} out of your {{ r.maxValue }}{{ r.unit }} {{ r.plural|capfirst }} - Aouch!
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 18
    				</p>
19 19
    			</div>
20 20
    			<div class="bar">
21 21
    				<div><span style="width:{{ r.ratio|floatformat }}%;">{{ r.ratio|floatformat }}% &nbsp;&nbsp;</span></div>
22 22
    			</div>
23 23
    		</li>
24
    		{% endwith %}
24 25
    		{% endfor %}
25 26
    	</ul>
26 27
    </div>    

Also available in: Unified diff