Last modules were not displayed if the number of modules did not match the number of rows of the table (when $number_of_modules % 4 != 0)
Signed-off-by: Marc Veron <veron@veron.ch>
Added some code to about.tt to have empty the last remaining cells, not sure if an other signoff is needed.
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
$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 );
<th scope="row" style="background-color:#FFCB2F;font-weight:normal" title="Module upgrade needed">
[% END %]
[% ELSE %]
- [% IF ( ro.require ) %]
+ [% IF ( ro.name == '' ) %]
+ <th>
+ [% ELSIF ( ro.require ) %]
<th scope="row" style="background-color:#FF8A8A;font-weight:bold;" title="Required module missing">
[% ELSE %]
<th scope="row" style="background-color:#FF8A8A;font-weight:normal" title="Optional module missing">
[% END %]
[% END %]
- [% ro.name %]
+ [% ro.name %]
</th>
- [% IF ( ro.version ) %]<td>[% ro.version %][% ELSE %]<td style="font-weight:bold">Not Installed[% END %]</td>
+ [% IF ( ro.name == '' ) %]
+ <td>
+ [% ELSIF ( ro.version ) %]
+ <td>[% ro.version %]
+ [% ELSE %]
+ <td style="font-weight:bold">Not Installed [% END %]</td>
[% END %]
</tr>
[% END %]