Skip to content

Commit 6d126ac

Browse files
Modified flash update email content for non-donors
2 parents 872e642 + a435a86 commit 6d126ac

File tree

4 files changed

+46
-28
lines changed

4 files changed

+46
-28
lines changed

main/frontend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ def get_project_url(id):
66

77

88
def get_flash_update_url(id):
9-
return f'{settings.FRONTEND_URL}/flash-update/{id}/'
9+
return f'https://{settings.FRONTEND_URL}/flash-update/{id}/'

notifications/templates/email/flash_update/flash_pdf.html

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<html>
22
<style>
3-
table { -pdf-keep-in-frame-mode: shrink;}
4-
img {
5-
-ms-interpolation-mode: bicubic;
6-
}
3+
table, tr, td {
4+
border: 5px solid white;
5+
height: 240px;
6+
width: 240px;
7+
}
78
.text-left {
89
text-align: left;
910
}
@@ -27,10 +28,6 @@
2728
font-weight: bold;
2829
padding-left: 20px;
2930
}
30-
.flash-image {
31-
width: 200px;
32-
height: 200px;
33-
}
3431
#situational_overview{
3532
font-size: 15px;
3633
}
@@ -46,16 +43,26 @@ <h2 class="heading">Situational Overview</h2>
4643
<div id="situational_overview"><p> {{situational_overview|safe}}</p></div>
4744

4845
<h2 class="heading">Graphics</h2>
49-
<div class="d-flex p-2">
50-
{% for map in map_list %}
51-
<img class = 'flash-image' src="{{map.image}}" alt="image">
52-
{% endfor %}
53-
</div><br>
54-
<div class="d-flex p-2">
55-
{% for graphic in graphic_list %}
56-
<img class = 'flash-image' src="{{graphic.image}}" alt="image">
57-
{% endfor %}
58-
</div>
46+
47+
<table>
48+
<tr>
49+
</tr>
50+
<tr>
51+
{% for map in map_list %}
52+
<td><img src="{{map.image}}" alt="image"></td>
53+
{% endfor %}
54+
</tr>
55+
</table>
56+
57+
<table>
58+
<tr>
59+
</tr>
60+
<tr>
61+
{% for graphic in graphic_list %}
62+
<td><img src="{{graphic.image}}" alt="image"></td>
63+
{% endfor %}
64+
</tr>
65+
</table>
5966

6067
<h2 class="heading">Actions Taken</h2>
6168

notifications/templates/email/flash_update/flash_update.html

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
33
<tr>
44
<td align="center" class="pb-30" style="padding-bottom:30px;">
5-
<table width="650" border="0" cellspacing="0" cellpadding="0" class="mobile-shell">
5+
<table width="800" border="0" cellspacing="0" cellpadding="0" class="mobile-shell">
66
<tr>
77
<td class="td td-shell" style="width: 650px;min-width: 650px;padding: 0;margin: 0;">
88
<table width="100%" border="0" cellspacing="0" cellpadding="0">
@@ -24,15 +24,22 @@
2424
<td class="text-default table-heading-title pt-10 pb-10" style="padding-top: 10px;padding-bottom: 10px;text-transform: uppercase;font-weight: bold;">Graphics</td>
2525
</tr>
2626
<tr>
27-
<td class="text-default text-light pb-40" style="padding-bottom: 40px;font-weight: 300;">
27+
<td class="text-default text-light pb-40" style="padding-bottom: 40px;font-weight: 300;">
2828
{% for map in map_list %}
2929
<img class = 'flash-image' src="{{map.image}}" alt="image">
3030
{% endfor %}
31+
</td>
32+
</tr>
3133

34+
<tr>
35+
<td class="text-default table-heading-title pt-10 pb-10" style="padding-top: 10px;padding-bottom: 10px;text-transform: uppercase;font-weight: bold;">Maps</td>
36+
</tr>
37+
<tr>
38+
<td class="text-default text-light pb-40" style="padding-bottom: 40px;font-weight: 300;">
3239
{% for graphic in graphic_list %}
3340
<img class = 'flash-image' src="{{graphic.image}}" alt="image">
3441
{% endfor %}
35-
</td>
42+
</td>
3643
</tr>
3744

3845

@@ -41,18 +48,22 @@
4148
<td class="text-default table-heading-title pt-20 pb-10" style="color: #000000;font-family:'Lato', Arial, sans-serif;padding-top: 20px;padding-bottom: 10px;text-transform: uppercase;font-weight: bold;">Actions Taken by {{act_taken.organization_display}}</td>
4249
</tr>
4350
<tr>
44-
<td class="text-default text-light" style="font-weight: 300;size:12px;">Descriptions</td>
51+
<td class="text-default text-light" style="font-weight: 500;size:12px;">Descriptions</td>
4552
</tr>
4653
<tr>
47-
<td class="text-default" style="font-family:'Lato', Arial, sans-serif; padding-bottom: 40px;">{{act_taken.summary}}</td>
54+
<td class="text-default" style="font-family:'Lato', Arial, sans-serif; padding-bottom: 40px;">
55+
{% if act_taken.summary%}
56+
&nbsp&nbsp{{act_taken.summary}}
57+
{% endif %}
58+
</td>
4859
</tr>
4960

5061
<tr>
51-
<td class="text-default text-light" style="font-weight: 300;size:12px;">Actions</td>
62+
<td class="text-default text-light" style="font-weight: 500;size:12px;">Actions</td>
5263
</tr>
5364
{% for action in act_taken.action_details %}
5465
<tr>
55-
<td class="text-default" style="font-family:'Lato', Arial, sans-serif; padding-bottom: 40px; font-weight: bold;padding-left: 20px;">{{action.name}}</td>
66+
<td class="text-default" style="font-family:'Lato', Arial, sans-serif; padding-bottom: 5px; font-weight: bold;padding-left: 20px;">{{action.name}}</td>
5667
</tr>
5768
{%endfor%}
5869
{% endfor %}

notifications/templates/email/flash_update/head.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@
290290
margin: auto !important;
291291
}
292292
.flash-image {
293-
width: 200px;
294-
height: 200px;
293+
width: 250px;
294+
height: 250px;
295295
}
296296
.img-dref {
297297
background-image: url("./images/rc.svg");

0 commit comments

Comments
 (0)