Skip to content

Commit

Permalink
fix(TripMonitorNotification): Make initial reminder not a list
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianaCeric committed Nov 28, 2023
1 parent 77c15ca commit d083e44
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/main/resources/templates/MonitoredTripHtml.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@
<#macro EmailMain>
<div>
<h1>Your trip has the following notifications:</h1>

<#if notification.type == "INITIAL_REMINDER">
<p>${notification.body}</p>
</#if>

<ul>
<#list notifications as notification>
<li>${notification}</li>
</#list>
<#list notifications as notification>
<#if notification.type != "INITIAL_REMINDER">
<li>${notification.body}</li>
</#if>
</#list>
</ul>

<p>View all of your saved trips in <a href="${OTP_UI_URL}${TRIPS_PATH}/${tripId}">${OTP_UI_NAME}</a>.</p>
</div>
</#macro>
Expand Down

0 comments on commit d083e44

Please sign in to comment.