From 4fc4da79826d708051c507ba4e8e4d0c4de38c80 Mon Sep 17 00:00:00 2001 From: Lakhan Baheti <94619783+1akhanBaheti@users.noreply.github.com> Date: Wed, 31 Jan 2024 20:16:47 +0530 Subject: [PATCH] fix: email-template heading overview (#3525) * fix: email-template heading * fix: typo --- .../plane/bgtasks/email_notification_task.py | 2 +- .../emails/notifications/issue-updates.html | 31 +++++++++++++++---- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/apiserver/plane/bgtasks/email_notification_task.py b/apiserver/plane/bgtasks/email_notification_task.py index cc9588ca6..713835033 100644 --- a/apiserver/plane/bgtasks/email_notification_task.py +++ b/apiserver/plane/bgtasks/email_notification_task.py @@ -186,7 +186,7 @@ def send_email_notification( } ) - summary = "updates were made to the issue by" + summary = "Updates were made to the issue by" # Send the mail subject = f"{issue.project.identifier}-{issue.sequence_id} {issue.name}" diff --git a/apiserver/templates/emails/notifications/issue-updates.html b/apiserver/templates/emails/notifications/issue-updates.html index bdc6a53a3..fa50631c5 100644 --- a/apiserver/templates/emails/notifications/issue-updates.html +++ b/apiserver/templates/emails/notifications/issue-updates.html @@ -108,14 +108,33 @@ margin-bottom: 15px; " /> - {% if actors_involved > 0 %} + {% if actors_involved == 1 %} +

+ {{summary}} + + {{ data.0.actor_detail.first_name}} + {{data.0.actor_detail.last_name}} + . +

+ {% else %} +

+ {{summary}} + + {{ data.0.actor_detail.first_name}} + {{data.0.actor_detail.last_name }} + and others. +

+ {% endif %} + + + {% for update in data %} {% if update.changes.name %}