Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
[% IF ( bormessagepref ) %]
<li>Patron notification:
[% FOREACH mtt IN bormessagepref.keys %]
- [% IF ( mtt == 'email' ) %] Email. [% END %]
- [% IF ( mtt == 'phone' ) %] Phone. [% END %]
- [% IF ( mtt == 'sms' ) %] SMS. [% END %]
+ [%~ IF ( mtt == 'email' ) %] Email[% END ~%]
+ [%~ IF ( mtt == 'phone' ) %] Phone[% END ~%]
+ [%~ IF ( mtt == 'sms' ) %] SMS[% END ~%]
+ [%~ UNLESS loop.last %], [% ELSE %].[% END ~%]
[% END %]
</li>
[% ELSE %]