-foreach my $component ( sort @component_names ) {
- my $version;
- if ( eval "require $component" ) {
- $version = $component->VERSION;
- if ( $version eq '' ) {
- $version = 'unknown';
+my $row = [];
+my $table = [];
+foreach (@components) {
+ push (@$row, $_);
+ unless (++$counter % 4) {
+ push (@$table, {row => $row});
+ $row = [];
+ }
+}
+# Processing the last line (if there are any modules left)
+if (scalar(@$row) > 0) {
+ # Extending $row to the table size
+ $$row[3] = '';
+ # Pushing the last line
+ push (@$table, {row => $row});
+}
+## ## $table
+
+$template->param( table => $table );
+
+
+## ------------------------------------------
+## Koha time line code
+
+#get file location
+my $docdir;
+if ( defined C4::Context->config('docdir') ) {
+ $docdir = C4::Context->config('docdir');
+} else {
+ # if no <docdir> is defined in koha-conf.xml, use the default location
+ # this is a work-around to stop breakage on upgraded Kohas, bug 8911
+ $docdir = C4::Context->config('intranetdir') . '/docs';
+}
+
+if ( open( my $file, "<", "$docdir" . "/history.txt" ) ) {
+
+ my $i = 0;
+
+ my @rows2 = ();
+ my $row2 = [];
+
+ my @lines = <$file>;
+ close($file);
+
+ shift @lines; #remove header row
+
+ foreach (@lines) {
+ my ( $date, $desc, $tag ) = split(/\t/);
+ if(!$desc && $date=~ /(?<=\d{4})\s+/) {
+ ($date, $desc)= ($`, $');