Skip to content

Commit

Permalink
feat: list if multiple notifs
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianaCeric committed Nov 29, 2023
1 parent afa16c0 commit b87a0f4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
13 changes: 10 additions & 3 deletions src/main/resources/templates/MonitoredTripSms.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@
-->

Your trip has the following notifications:
<#list notifications as notification>
-${notification}
</#list>

<#if notifications?size > 1>
<#list notifications as notification>
${notification}
</#list>
<#else>
<#list notifications as notification>
${notification}
</#list>
</#if>

View trip: ${OTP_UI_URL}${TRIPS_PATH}/${tripId}

Expand Down
12 changes: 9 additions & 3 deletions src/main/resources/templates/MonitoredTripText.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
-->

Your trip has the following notifications:
<#list notifications as notification>
-${notification}
</#list>
<#if notifications?size > 1>
<#list notifications as notification>
${notification}
</#list>
<#else>
<#list notifications as notification>
${notification}
</#list>
</#if>

View trip: ${OTP_UI_URL}${TRIPS_PATH}/${tripId}

0 comments on commit b87a0f4

Please sign in to comment.