From 5ba02d940738da37379b4770dcd1dfdcc1b37465 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 22 Dec 2020 13:03:56 +0530 Subject: [PATCH] feat: don't show avatar for comments --- .../form/templates/timeline_message_box.html | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/frappe/public/js/frappe/form/templates/timeline_message_box.html b/frappe/public/js/frappe/form/templates/timeline_message_box.html index 0d12e97d25..ad276853f1 100644 --- a/frappe/public/js/frappe/form/templates/timeline_message_box.html +++ b/frappe/public/js/frappe/form/templates/timeline_message_box.html @@ -1,15 +1,25 @@
- - {{ frappe.avatar(doc.owner, "avatar-medium") }} - - - {{ doc.user_full_name || frappe.user.full_name(doc.owner) }} -
- {{ comment_when(doc.creation) }} -
-
+ {% if (doc.commment_type && doc.commment_type == "Comment") { %} + {% console.log(doc) %} + + {{ doc.user_full_name || frappe.user.full_name(doc.owner) }} {{ __("commented") }} + + {{ comment_when(doc.creation) }} + + + {% } else { %} + + {{ frappe.avatar(doc.owner, "avatar-medium") }} + + + {{ doc.user_full_name || frappe.user.full_name(doc.owner) }} +
+ {{ comment_when(doc.creation) }} +
+
+ {% } %}
{% if (doc._doc_status && doc._doc_status_indicator) { %}