Skip to content

Commit 73ecfcd

Browse files
Merge pull request #1476 from IFRCGo/fix/flash-update-pdf-image
Add caption for images in flash pdf
2 parents c9ae44c + e822f9c commit 73ecfcd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

notifications/templates/email/flash_update/flash_pdf.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
padding-left: 20px;
3737
text-decoration: none;
3838
}
39+
.caption {
40+
font-size: 13px;
41+
padding-left: 6px;
42+
}
3943
#situational_overview{
4044
font-size: 15px;
4145
}
@@ -55,15 +59,15 @@ <h2 class="heading">Graphics and Maps</h2>
5559
<table>
5660
<tr>
5761
{% for map in map_list %}
58-
<td><img style='width:100%; height:100%;' src="{{map.image}}" alt="image"></td>
62+
<td><img style='width:100%; height:100%;' src="{{map.image}}" alt="image"><br><p class='caption'>{{map.caption}}</p></td>
5963
{% endfor %}
6064
</tr>
6165
</table>
6266

6367
<table>
6468
<tr>
6569
{% for graphic in graphic_list %}
66-
<td><img style='width:100%; height:100%;' src="{{graphic.image}}" alt="image"></td>
70+
<td><img style='width:100%; height:100%;' src="{{graphic.image}}" alt="image"><br><p class='caption'>{{graphic.caption}}</p></td>
6771
{% endfor %}
6872
</tr>
6973
</table>

0 commit comments

Comments
 (0)