commit e702fd069e65237f7dca7067d8b3d87dfdbd09c9 parent 4d7d72d0f2993f3a22d848161f4544e72dc446fc Author: lash <dev@holbrook.no> Date: Tue, 1 Oct 2024 17:42:09 +0100 Only show contributor heading in template when have contributors Diffstat:
M | Bluto/Announce.pm | | | 10 | +++++----- |
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Bluto/Announce.pm b/Bluto/Announce.pm @@ -108,13 +108,13 @@ ONLINE RESOURCES [% FOREACH v IN url %]* [% v %] [% END %] -[% IF contributors %]CONTRIBUTORS IN THIS VERSION +[% FOREACH v IN contributors %][% IF !have_contributors %]CONTRIBUTORS IN THIS VERSION ---------------------------- -[% FOREACH v IN contributors %]* [% v %] -[% END %] -[% END %] -CHANGELOG +[% SET have_contributors = 1 %][% END %]* [% v %] +[% END %][% IF have_contributors %] + +[% END %]CHANGELOG --------- [% changelog %]