Skip to content

Commit

Permalink
fix: use correct ejs syntax AB#26923
Browse files Browse the repository at this point in the history
  • Loading branch information
arsforza committed Jun 28, 2024
1 parent 521abc2 commit f549632
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export class EmailTemplateService {
mapImgDescription: this.getMapImageDescription(
emailContent.disasterType,
),
eventName: event.eventName ? ` for '${event.eventName}'` : '',
eventName: event.eventName ? `(for ${event.eventName})` : '',
};
eventHtml = ejs.render(eventHtml, replacements);
html += eventHtml;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<br />
<b>Map of the triggered area(<%= eventName %>):</b> (click 'Download pictures'
if it does not show)
<b>Map of the triggered area <%- eventName %></b>
<br />
<%= mapImgDescription %>
<img src="<%= mapImgSrc %>" width="600" />
<%- mapImgDescription %>
<img
src="<%= mapImgSrc %>"
width="600"
alt="click 'Download pictures' if it does not show"
/>
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<b>Trigger Statement:</b>
<%- triggerStatement %>
<br />
<%= mapImagePart %>
<%- mapImagePart %>
<br />
<br />
<%- tablesStacked %> <%- footer %>
Expand Down

0 comments on commit f549632

Please sign in to comment.