From 43f0123f6ebea594f32dd5752d531a689f8fd67e Mon Sep 17 00:00:00 2001 From: Ostap Zherebetskyi Date: Tue, 7 Jul 2026 13:09:13 +0300 Subject: [PATCH 1/2] Add blank notification type and template --- notifications.yaml | 7 +++++++ osf/models/notification_type.py | 1 + website/templates/blank.html.mako | 5 +++++ 3 files changed, 13 insertions(+) create mode 100644 website/templates/blank.html.mako diff --git a/notifications.yaml b/notifications.yaml index e3b7b286a30..f10bafa4396 100644 --- a/notifications.yaml +++ b/notifications.yaml @@ -801,3 +801,10 @@ notification_types: object_content_type_model_name: abstractnode template: 'website/templates/empty.html.mako' tests: [] + + - name: blank + subject: '{subject}' + __docs__: ... + object_content_type_model_name: osfuser + template: 'website/templates/blank.html.mako' + tests: [] diff --git a/osf/models/notification_type.py b/osf/models/notification_type.py index f8162a08bce..9a6629e22e2 100644 --- a/osf/models/notification_type.py +++ b/osf/models/notification_type.py @@ -14,6 +14,7 @@ def get_default_frequency_choices(): class NotificationTypeEnum(str, Enum): EMPTY = 'empty' + BLANK = 'blank' # Desk notifications REVIEWS_SUBMISSION_STATUS = 'reviews_submission_status' ADDONS_BOA_JOB_FAILURE = 'addon_boa_job_failure' diff --git a/website/templates/blank.html.mako b/website/templates/blank.html.mako new file mode 100644 index 00000000000..ca288db0a10 --- /dev/null +++ b/website/templates/blank.html.mako @@ -0,0 +1,5 @@ +<%inherit file="notify_base.mako" /> + +<%def name="content()"> + + \ No newline at end of file From dfd518bc18ed804914ee2ebd4936250ecec97ec7 Mon Sep 17 00:00:00 2001 From: Longze Chen Date: Wed, 8 Jul 2026 13:29:14 -0400 Subject: [PATCH 2/2] Respond to CR --- notifications.yaml | 2 +- website/templates/blank.html.mako | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notifications.yaml b/notifications.yaml index f10bafa4396..6161abd9fc6 100644 --- a/notifications.yaml +++ b/notifications.yaml @@ -803,7 +803,7 @@ notification_types: tests: [] - name: blank - subject: '{subject}' + subject: 'PLACEHOLDER FOR EMAIL SUBJECT' __docs__: ... object_content_type_model_name: osfuser template: 'website/templates/blank.html.mako' diff --git a/website/templates/blank.html.mako b/website/templates/blank.html.mako index ca288db0a10..f41301c1d1c 100644 --- a/website/templates/blank.html.mako +++ b/website/templates/blank.html.mako @@ -2,4 +2,4 @@ <%def name="content()"> - \ No newline at end of file +