fix OPAC syntax errors user/lew/password-project-phase-2
authorLlewellyn Marshall <llewellyn.marshall@ncdcr.gov>
Wed, 19 Apr 2023 13:45:15 +0000 (09:45 -0400)
committerLlewellyn Marshall <llewellyn.marshall@ncdcr.gov>
Wed, 19 Apr 2023 13:45:15 +0000 (09:45 -0400)
Open-ILS/src/templates-bootstrap/opac/myopac/main.tt2
Open-ILS/src/templates/opac/parts/myopac/main_base.tt2

index 4634c79..c24166a 100755 (executable)
@@ -20,8 +20,8 @@
                     <div class="col-12">
                             [% 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 <b>[_1]</b> 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 <b>[_1]</b> 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 <b>[_1]</b> 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 <b>[_1]</b> days. Please consider updating your password.',ctx.password_expire_age) %][% END %]
                             [% END %]
                             [% IF need_password_change %]
                             <br>
index cf7d297..65f3333 100644 (file)
@@ -61,8 +61,8 @@
             <span class="alert">
                     [% 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 <b>[_1]</b> 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 <b>[_1]</b> 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 <b>[_1]</b> 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 <b>[_1]</b> days. Please consider updating your password.',ctx.password_expire_age) %][% END %]
                     [% END %]
                     [% IF need_password_change %]
                     <a href='update_password'