';
updates.forEach(function(update) {
var updateStatus = update.status || 'investigating';
var updateBody = update.body || '';
var updateTime = formatDate(update.created_at);
html += '
';
html += '
';
html += ' ' + updateStatus.replace(/_/g, ' ').replace(/\b\w/g, function(c) { return c.toUpperCase(); }) + '';
html += ' - ' + updateBody + '';
html += '
';
html += '
' + updateTime + '
';
html += '
';
});
html += '