<% if (_.isArray(groupEntries)) { %>
<% if (group == 'interfaces' || group == 'disks') groupEntries = _.sortBy(groupEntries, 'name') %>
<% _.each(groupEntries, function(entry) { %>
<% var sortOrder = {
disks: ['name', 'model', 'size'],
interfaces: ['name', 'mac', 'state', 'ip', 'netmask', 'current_speed', 'max_speed']
} %>
<% _.each(sortEntryProperties(entry, sortOrder[group]), function(propertyName) { %>
<%- showPropertyValue(group, propertyName, entry[propertyName]) %>
<% }) %>
<% }) %>
<% } else if (_.isObject(groupEntries)) { %>
<% var subentries = _.find(_.values(groupEntries), _.isArray) %>
<% _.each(groupEntries, function(propertyValue, propertyName) { %>
<% if (!_.isArray(propertyValue)) { %>
<%- showPropertyValue(group, propertyName, propertyValue) %>
<% } %>
<% }) %>
<% if (_.isArray(subentries)) { %>
<% _.each(subentries, function(subentry) { %>
<% _.each(sortEntryProperties(subentry), function(propertyName) { %>
<%- showPropertyValue(group, propertyName, subentry[propertyName]) %>
<% }) %>
<% }) %>
<% } %>
<% } else { %>
<%- groupEntries %>
<% } %>