Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
}
## Contributors
-my $contributors = LoadFile("$docdir"."/contributors.yaml");
+my $contributors =
+ -e "$docdir" . "/contributors.yaml"
+ ? LoadFile( "$docdir" . "/contributors.yaml" )
+ : {};
my @people = map {
{
name => $_,
</ul>
<h2>Koha development team</h2>
- <ul class="columns-4">
- [% FOREACH contributor IN contributors %]
- <li>[% INCLUDE person p=contributor %][% INCLUDE contributions p=contributor %]</li>
- [% END %]
- </ul>
+ [% IF contributors.size %]
+ <ul class="columns-4">
+ [% FOREACH contributor IN contributors %]
+ <li>[% INCLUDE person p=contributor %][% INCLUDE contributions p=contributor %]</li>
+ [% END %]
+ </ul>
+ [% ELSE %]
+ <div class="dialog alert">
+ Could not read the contributors.yaml file. Please make sure <docdir> is correctly defined in koha-conf.xml.
+ </div>
+ [% END %]
<hr>
<h2>Contributing companies and institutions</h2>