<% if (isUrl(metrics.icon)) { %>
<% } else { %>
<% } %>
<%= metrics.title %> <% var min = null, max = null, scale = metrics.scaleTitle; %> <% _.each(Object.keys(metrics.modes), function(mode) { %> <% if ('level' in metrics.modes[mode]) { %> <% if (min === null) { %> <% min = metrics.modes[mode].min; %> <% max = metrics.modes[mode].max; %> <% } else { %> <% min = Math.min(min, metrics.modes[mode].min); %> <% max = Math.max(max, metrics.modes[mode].max); %> <% } %> <% } %> <% }); %> <% if (scale && min !== null) { %> <% if ("level" in metrics.modes[metrics.mode]) { %> <% } %> <% for (var temp = min; temp <= max; temp++) { %> <% }; %> <% } %> <% if (Object.keys(metrics.modes).length > 1) { %> <% } %>