From: Llewellyn Marshall Date: Wed, 19 Apr 2023 13:45:15 +0000 (-0400) Subject: fix OPAC syntax errors X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e2cdde9a98f52eade538922c879e4ad57a380d03;p=working%2FEvergreen.git fix OPAC syntax errors --- diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/main.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/main.tt2 index 4634c791b9..c24166ab85 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/main.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/main.tt2 @@ -20,8 +20,8 @@
[% IF ctx.password_age == -1 %] [% l('You have never changed your password. Please consider updating your password.') %] - [% ELSIF ctx.password_age >= (ctx.ctx.password_expire_age - 7) %] - [% l('Your password is [_1] days old.',ctx.password_age) %][%- IF !need_password_change %] [% l('You will be asked to change your password soon.') %][%- ELSE %] [% l('It is recommended to update your password every [_1] days. Please consider updating your password.',ctx.ctx.password_expire_age) %][% END %] + [% ELSIF ctx.password_age >= (ctx.password_expire_age - 7) %] + [% l('Your password is [_1] days old.',ctx.password_age) %][%- IF !need_password_change %] [% l('You will be asked to change your password soon.') %][%- ELSE %] [% l('It is recommended to update your password every [_1] days. Please consider updating your password.',ctx.password_expire_age) %][% END %] [% END %] [% IF need_password_change %]
diff --git a/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 b/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 index cf7d29756e..65f3333ba2 100644 --- a/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 +++ b/Open-ILS/src/templates/opac/parts/myopac/main_base.tt2 @@ -61,8 +61,8 @@ [% IF ctx.password_age == -1 %] [% l('You have never changed your password. Please consider updating your password.') %] - [% ELSIF ctx.password_age >= (ctx.ctx.password_expire_age - 7) %] - [% l('Your password is [_1] days old.',ctx.password_age) %][%- IF !need_password_change %] [% l('You will be asked to change your password soon.') %][%- ELSE %] [% l('It is recommended to update your password every [_1] days. Please consider updating your password.',ctx.ctx.password_expire_age) %][% END %] + [% ELSIF ctx.password_age >= (ctx.password_expire_age - 7) %] + [% l('Your password is [_1] days old.',ctx.password_age) %][%- IF !need_password_change %] [% l('You will be asked to change your password soon.') %][%- ELSE %] [% l('It is recommended to update your password every [_1] days. Please consider updating your password.',ctx.password_expire_age) %][% END %] [% END %] [% IF need_password_change %]