From 290d0bbe7d368cd1a6098849a0d5088a8d69cd10 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Thu, 7 Aug 2014 07:45:34 +0200 Subject: [PATCH] Bug 12790 - Perl modules: Display required version numbers on about page Content-Type: text/plain; charset=utf-8 This patch adds information about required perl module versions to the 'About' page. To test: Apply patch. In staff client, go to 'About', tab 'Perl modules' The required version numbers should display in small print next to or underneath the module names. Signed-off-by: Nick Clemens Signed-off-by: Marcel de Rooy --- about.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 4 +++- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/about.pl b/about.pl index b197cd3..d144e37 100755 --- a/about.pl +++ b/about.pl @@ -161,6 +161,7 @@ foreach my $pm_type(@pm_types) { upgrade => ($pm_type eq 'upgrade_pm' ? 1 : 0), current => ($pm_type eq 'current_pm' ? 1 : 0), require => $stats->{'required'}, + reqversion => $stats->{'min_ver'}, } ); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index 30de558..e2422f0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -83,7 +83,9 @@ [% END %] [% END %] - [% ro.name %] + [% IF ( ro.name ) %] + [% ro.name %] ([%ro.reqversion %]) + [% END %] [% IF ( ro.name == '' ) %] -- 1.7.7.6