Revision 21e48908 snf-astakos-app/astakos/im/templates/im/projects/project_detail.html

b/snf-astakos-app/astakos/im/templates/im/projects/project_detail.html
4 4

  
5 5
{% block page.body %}
6 6
{% with object.project.approved_members as approved_members %}
7
{% with resource_catalog|populated_resource_catalog as resource_catalog%}
8 7
<div class="projects">
9 8
	
10 9

  
......
95 94
		 {% if object.projectresourcegrant_set.all %}
96 95
	     <dl class="alt-style">	
97 96
	 		{% for rp in object.projectresourcegrant_set.all %}
98
                {% with resource_catalog|lookup:'resources' as resource_info %}
99
                    {% with rp.resource|to_unicode as resource_name %}
100
                        {% with resource_info|lookup:resource_name as decorated_resource %}
101 97
		 		<dt>
102
       				Max {% if decorated_resource.is_abbreviation %}{{ decorated_resource.verbose_name|upper }}{% else %}{{ decorated_resource.verbose_name }}{% endif %}{% if not q.unit %}s {% endif  %}  per user
98
       				Max {% if rp.resource.is_abbreviation %}{{ rp.resource.verbose_name|upper }}{% else %}{{ rp.resource.verbose_name }}{% endif %}{% if not q.unit %}s {% endif  %}  per user
103 99
       			</dt>
104 100
		 		<dd>
105 101
       			{% if rp.member_capacity %}
106
       				 {% if decorated_resource.unit %}
102
       				 {% if rp.resource.unit %}
107 103
       				 	{{ rp.member_capacity|sizeof_fmt }}
108 104
       				 {% else %}
109 105
       				 	{{ rp.member_capacity|isinf }}
......
112 108
       				Unlimited
113 109
       			{% endif %}
114 110
       			</dd>
115
       			        {% endwith %}
116
       			    {% endwith %}
117
       			{% endwith %}
118 111
       		{% empty %}
119 112
       			No resources
120 113
	 		{% endfor %}
......
218 211
</div>
219 212

  
220 213
{% endwith %} 
221
{% endwith %}
222 214
{% endblock %}

Also available in: Unified diff