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 <nick@quecheelibrary.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Marc Véron 2014-08-07 07:45:34 +02:00 committed by Tomas Cohen Arazi
parent 80086f3ffb
commit 27d3409598
2 changed files with 4 additions and 1 deletions

View File

@ -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'},
}
);
}

View File

@ -83,7 +83,9 @@
<th scope="row" style="background-color:#FF8A8A;font-weight:normal" title="Optional module missing">
[% END %]
[% END %]
[% ro.name %]
[% IF ( ro.name ) %]
[% ro.name %] <span style="font-weight:normal; font-size:smaller"> ([%ro.reqversion %])</span>
[% END %]
</th>
[% IF ( ro.name == '' ) %]
<td>