<%= _.isUndefined(i18n['IP']) ? 'IP':i18n['IP'] %> <% ipAddresses = stats['ipAddresses'].split(',') %> <% _.each(ipAddresses, function(ipAddress, index){ %> <% if (ipAddresses.length -1 > index) { %> <%= ipAddress +', '%> <% } else { %> <%= ipAddress %> <% } %> <% }) %>
<%= _.isUndefined(i18n['OS']) ? 'OS':i18n['OS'] %> <% operationSystemsCode = stats['operatingSystemsCode'] %> <% operatingSystemsCodePlusVersion = stats['operatingSystemsCodePlusVersion'] %> <% _.each(operatingSystemsCodePlusVersion.split(','), function(operationSystemCode){ %> <% operationSystemDataInfo = operationSystemCode.split('|') %> <%= operationSystemDataInfo[0]+' '+operationSystemDataInfo[1] %> <% }) %>
<%= _.isUndefined(i18n['Browsers']) ? 'Browsers':i18n['Browsers'] %> <% _.each(stats['browserCodes'].split(','), function(operationSystemCode){ %> <% }) %>
<%= _.isUndefined(i18n['Resolutions']) ? 'Resolutions':i18n['Resolutions'] %> <% resolutions = stats['resolutions'].split(',') %> <% _.each(resolutions, function(resolution, index){ %> <% if (resolutions.length -1 > index) { %> <%= resolution +', '%> <% } else { %> <%= resolution %> <% } %> <% }) %>