feat: don't show avatar for comments
This commit is contained in:
parent
52f1b5945c
commit
5ba02d9407
1 changed files with 19 additions and 9 deletions
|
|
@ -1,15 +1,25 @@
|
|||
<div class="timeline-message-box">
|
||||
<span class="flex justify-between">
|
||||
<span class="text-color flex">
|
||||
<span>
|
||||
{{ frappe.avatar(doc.owner, "avatar-medium") }}
|
||||
</span>
|
||||
<span class="margin-left">
|
||||
{{ doc.user_full_name || frappe.user.full_name(doc.owner) }}
|
||||
<div class="text-muted">
|
||||
{{ comment_when(doc.creation) }}
|
||||
</div>
|
||||
</span>
|
||||
{% if (doc.commment_type && doc.commment_type == "Comment") { %}
|
||||
{% console.log(doc) %}
|
||||
<span>
|
||||
{{ doc.user_full_name || frappe.user.full_name(doc.owner) }} {{ __("commented") }}
|
||||
<span class="text-muted">
|
||||
{{ comment_when(doc.creation) }}
|
||||
</span>
|
||||
</span>
|
||||
{% } else { %}
|
||||
<span class="margin-right">
|
||||
{{ frappe.avatar(doc.owner, "avatar-medium") }}
|
||||
</span>
|
||||
<span>
|
||||
{{ doc.user_full_name || frappe.user.full_name(doc.owner) }}
|
||||
<div class="text-muted">
|
||||
{{ comment_when(doc.creation) }}
|
||||
</div>
|
||||
</span>
|
||||
{% } %}
|
||||
</span>
|
||||
<span class="actions">
|
||||
{% if (doc._doc_status && doc._doc_status_indicator) { %}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue