From 41a988f24be4083402d628eb1316f3f8ec7854a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?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 underneath the module names. Signed-off-by: Nick Clemens Needs new Sign-off (code changed) --- 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 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.10.4