only link to homepage if it's non-empty

closes #7
This commit is contained in:
Aaron Bieber 2024-02-22 16:30:18 -07:00
parent 2d4cade491
commit b2f0af2cce
No known key found for this signature in database

View File

@ -364,10 +364,14 @@ __DATA__
</li> </li>
<ul> <ul>
<li> <li>
% if ($result->{HOMEPAGE} ne "") {
<a <a
href="<%= $result->{HOMEPAGE} %>" href="<%= $result->{HOMEPAGE} %>"
title="Home page for <%= $result->{FULLPKGNAME} %>" title="Home page for <%= $result->{FULLPKGNAME} %>"
>Home page</a> >Home page</a>
% } else {
<s>Home page</s>
% }
</li> </li>
<li> <li>
<a href="/tree?name=<%= $result->{FULLPKGPATH} %>" <a href="/tree?name=<%= $result->{FULLPKGPATH} %>"