Skip to content

Commit ce81606

Browse files
Merge pull request #1468 from IFRCGo/fix/flash-email-subject-modify
Change email subject format
2 parents f665836 + 494b373 commit ce81606

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## Unreleased
8+
- Flash update notification
9+
- Real_data_update date comparison to appeal endpoint
10+
- Rich Text Editor enhancements
11+
- Adding Notes to AppealFilter
12+
- Fixing flash update PDF
13+
- Logging frontend login attempts
14+
- Search output enhanced with visibility
15+
- Contacts to FR notification
816

917
## 1.1.442
1018

flash_update/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def share_flash_update(flash_update_share_id):
3535

3636
users_emails = set([*donors_emails, *donor_groups_emails])
3737
send_notification(
38-
f'Flash Update #{flash_update.id}',
38+
f'Flash Update: {flash_update.title}',
3939
users_emails,
4040
render_to_string('email/flash_update/donor_email.html', email_context),
4141
'Flash Update',
@@ -56,7 +56,7 @@ def send_flash_update_email(flash_update_id):
5656
).values_list('email', flat=True)
5757
if users_emails:
5858
send_notification(
59-
'Flash Update',
59+
f'Flash Update: {instance.title}',
6060
users_emails,
6161
render_to_string('email/flash_update/flash_update.html', email_context),
6262
'Flash Update'

notifications/templates/email/flash_update/flash_update.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
<table width="100%" border="0" cellspacing="0" cellpadding="0">
99
<tr>
1010
<td class="text-center text-default pb-25" style="padding-bottom: 25px;text-align: center;">
11-
<span class="table-heading-main" style="font-size: 18px;font-weight: bold;">Flash Update :{{title}}</span><br>
11+
<span class="table-heading-main" style="font-size: 18px;font-weight: bold;">Flash Update</span><br>
12+
<span class="table-heading-main" style="font-size: 18px;font-weight: bold;">{{title}}</span><br>
1213
</td>
1314
</tr>
1415
<tr>

0 commit comments

Comments
 (0)