Bug 13496: make auth.tt use a template plugin to get the Koha version
authorTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 29 Dec 2014 00:20:55 +0000 (21:20 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sun, 4 Jan 2015 14:24:22 +0000 (11:24 -0300)
This patch makes the installer login template use the new Koha.Version
template plugin to get the correct Koha version. This way we don't need
to maintain the auth.tt file on each version change, and are sure screen
readers tell the correct version.

To test:
- Create a situation where the login screen from the installer shows
- Navigate the HTML code (Ctrl+u)
=> FAIL: "Koha 3.0 Installer" shows on the HTML code
- Apply the patch
- Reload the page
=> SUCCESS: The correct version number is shown.
- Sign off :-D

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/installer/auth.tt

index 026d022..d55c71e 100644 (file)
@@ -1,3 +1,4 @@
+[% USE Koha %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; 
     [% IF ( nopermission ) %]Access denied[% END %]
@@ -9,7 +10,7 @@
 
 [% INCLUDE 'installer-doc-head-close.inc' %]
 <div id="login">
-<h1><a>Koha 3.0 Installer</a></h1>
+<h1><a>Koha [%- Koha.Version.release -%] installer</a></h1>
 [% IF ( nopermission ) %]
 <div id="login_error"><strong>Error: </strong>Unauthorized user <a href="/cgi-bin/koha/mainpage.pl?logout.x=1">click to log out</a></div>
 [% END %]