Skip to content

Commit 3ea9764

Browse files
[ENG-11583] Create Blank Notification Template (#11802)
* Add blank notification type and template * Respond to CR --------- Co-authored-by: Longze Chen <cslzchen@gmail.com>
1 parent f9cdf85 commit 3ea9764

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

notifications.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,3 +801,10 @@ notification_types:
801801
object_content_type_model_name: abstractnode
802802
template: 'website/templates/empty.html.mako'
803803
tests: []
804+
805+
- name: blank
806+
subject: 'PLACEHOLDER FOR EMAIL SUBJECT'
807+
__docs__: ...
808+
object_content_type_model_name: osfuser
809+
template: 'website/templates/blank.html.mako'
810+
tests: []

osf/models/notification_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def get_default_frequency_choices():
1414

1515
class NotificationTypeEnum(str, Enum):
1616
EMPTY = 'empty'
17+
BLANK = 'blank'
1718
# Desk notifications
1819
REVIEWS_SUBMISSION_STATUS = 'reviews_submission_status'
1920
ADDONS_BOA_JOB_FAILURE = 'addon_boa_job_failure'

website/templates/blank.html.mako

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<%inherit file="notify_base.mako" />
2+
3+
<%def name="content()">
4+
5+
</%def>

0 commit comments

Comments
 (0)