{% if (data.user_content) { %}
{% } %}
{%= data.delete %}
{% if(data.communication_type==="Communication" || (data.communication_type==="Comment" && data.comment_type==="Comment")) { %}
{%= data.fullname %} {% if (data.timeline_doctype===data.frm.doc.doctype && data.timeline_name===data.frm.doc.name) { %} – {{ __(data.reference_doctype) }} {{ data.reference_name }} {% } %} – {%= data.comment_on %} {% if(data.communication_type==="Communication") { %} {% if (frappe.model.can_read(\'Communication\')) { %} {% } %} {% if (data.delivery_status) { if (in_list(["Sent", "Opened", "Clicked"], data.delivery_status)) { var indicator_class = "green"; } else { var indicator_class = "red"; } %} {%= data.delivery_status %} {% } else { %} {% if (frappe.model.can_read(\'Communication\')) { %} {%= __("Details") %} {% } %} {% } %} {% if (frappe.model.can_read(\'Communication\')) { %} {% } %} {% if (data.communication_medium === "Email") { %} {%= __("Reply") %} {% } %} {% } %}
{%= data.content_html %}
{% } else if(in_list(["Assignment Completed", "Assigned", "Shared", "Unshared"], data.comment_type)) { %}
{% if (data.timeline_doctype===data.frm.doc.doctype && data.timeline_name===data.frm.doc.name) { %} {{ __(data.reference_doctype) }} {{ data.reference_name }} – {% } %} {% if(data.link_doctype && data.link_name) { %} {% } %} {%= data.content %} {% if(data.link_doctype && data.link_name) { %} {% } %} – {%= data.comment_on %}
{% } else { %}
{% if (data.comment_type == "Like") { %} {% if (data.timeline_doctype===data.frm.doc.doctype && data.timeline_name===data.frm.doc.name) { %} {{ __(data.reference_doctype) }} {{ data.reference_name }} – {% } %} {%= __("Liked by {0}", [data.fullname]) %} {% } else { %} {%= data.fullname %} {%= data.content %} {% if (data.timeline_doctype===data.frm.doc.doctype && data.timeline_name===data.frm.doc.name) { %} – {{ __(data.reference_doctype) }} {{ data.reference_name }} {% } %} {% } %} – {%= data.comment_on %}
{% } %} {% if(data.attachments && data.attachments.length) { %}
{% $.each(data.attachments, function(i, a) { %} {% }); %}
{% } %}