From 27d340959835107941e683a5d6aec64ebca782f2 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 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 Signed-off-by: Tomas Cohen Arazi --- about.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/about.pl b/about.pl index b197cd36a3..d144e371bb 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 30de55871a..e2422f024a 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 == '' ) %] -- 2.39.5