--- /dev/null
+{% load rest_filters %}
+<thead>
+<tr>
+ {% for p in properties %}
+ <th>
+ {{ p }}
+ </th>
+ {% endfor %}
+</tr>
+</thead>
+<tbody>
+{% for d in data %}
+<tr>
+ {% for p in properties %}
+ <td>
+ <div class="line1">{{ d|key:p }}</div>
+ </td>
+ {% endfor %}
+</tr>
+{% endfor %}
+</tbody>
+<!--
+"component_name",
+ "tags",
+ "component_id",
+ "interfaces",
+ "component_manager_id",
+ "longitude", "country",
+ "exclusive", "hrn", "hardware_types",
+ "slice", "network_hrn",
+ "hostname", "urn", "x", "y", "z",
+ "initscripts", "location", "latitude", "boot_state", "type" -->
\ No newline at end of file
--- /dev/null
+<thead>
+<tr>
+ <th>
+ Resource
+ </th>
+ <th>
+ Location
+ </th>
+ <th>
+
+ </th>
+</tr>
+</thead>
+<tbody>
+{% for d in data %}
+<tr>
+ <td>
+ <div class="line1">{{ d.hostname|default:"" }} <span class="detail">{{ d.type|default:"" }}</span></div>
+ <div class="line2">{{ d.hrn|default:"" }}</div>
+ </td>
+ <td>
+ <div class="line1">{{ d.country|default:"" }}</div>
+ <div class="hrn">{{ d.location|default:"" }}</div>
+ </td>
+ <td>
+ <div class="hostname">{{ d.boot_state }}</div>
+ <div class="hrn">{{ d.network_hrn }}</div>
+ </td>
+
+</tr>
+{% endfor %}
+</tbody>
+<!--
+"component_name",
+ "tags",
+ "component_id",
+ "interfaces",
+ "component_manager_id",
+ "longitude", "country",
+ "exclusive", "hrn", "hardware_types",
+ "slice", "network_hrn",
+ "hostname", "urn", "x", "y", "z",
+ "initscripts", "location", "latitude", "boot_state", "type" -->
\ No newline at end of file
--- /dev/null
+from django import template
+
+register = template.Library()
+
+@register.filter(name='key')
+def key(d, key_name):
+ if d[key_name] != None :
+ return d[key_name]
+ else :
+ return ""
+
+#key = register.filter('key', key)
\ No newline at end of file