{% if agg.resource_set.all %}
{% with agg.resource_set.all as resource_set %} {# Order resources by name #} {% regroup resource_set|dictsort:"name" by name as resource_set_ordered %} {% for resource in resource_set_ordered %} {# Get the first element within the list #} {% with resource.list.0.sampleresource as sensor %} {# Surrounding SampleResource row #} {% endwith %} {% endfor %} {% endwith %}
Sensor name Temperature Temperature scale Interfaces Actions
{{ sensor.get_name }} {{ sensor.get_temperature }} {{ sensor.get_full_temperature_scale }} {% for connection in sensor.get_connections %} {{ connection.name }}{% if not forloop.last %}, {% endif %} {% endfor %} Edit | Delete
{% else %}
The aggregate manager does not contain any sample resource yet, or this Expedient instance has not enough privileges to access current resources...
{% endif %}