Skip to content

Commit a435a86

Browse files
Solve link to ifrc-go in email
- Increase image size in pdf
1 parent 872e642 commit a435a86

File tree

2 files changed

+26
-19
lines changed

2 files changed

+26
-19
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

0 commit comments

Comments
 (0)