mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Remove email activities from close lead export script
This commit is contained in:
parent
275f708041
commit
a7d51d672a
1 changed files with 0 additions and 17 deletions
|
@ -128,23 +128,6 @@ function activity2Html(activity) {
|
|||
}
|
||||
html += "</p>";
|
||||
}
|
||||
else if (activity._type === 'Email') {
|
||||
html += `<h3>${activity._type}</h3>`;
|
||||
if (activity.subject) html += `<h4>${activity.subject}</h4>`;
|
||||
if (activity.date_updated) html += `<div>Updated: ${activity.date_updated}</div>`;
|
||||
if (activity.opens_summary) html += `<div>${activity.opens_summary}</div>`;
|
||||
if (activity.status) html += `<div>Status: ${activity.status}</div>`;
|
||||
for (let email of activity.to) {
|
||||
html += `<div>To: ${email}</div>`;
|
||||
}
|
||||
if (activity.sender) html += `<div>From: ${activity.sender}</div>`;
|
||||
const lines = (activity.body_text || '').split('\n');
|
||||
html += "<p>";
|
||||
for (const line of lines) {
|
||||
html += `<div>${line}</div>`;
|
||||
}
|
||||
html += "</p>";
|
||||
}
|
||||
return html;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue