git: 333a4f4dbd - main - ports.cgi: show the heading only on the homepage
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Sep 2026 18:03:59 UTC
The branch main has been updated by wosch:
URL: https://cgit.FreeBSD.org/doc/commit/?id=333a4f4dbd83123ff8abbc6321dd8b121fa43900
commit 333a4f4dbd83123ff8abbc6321dd8b121fa43900
Author: Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2026-09-06 18:03:05 +0000
Commit: Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2026-09-06 18:03:05 +0000
ports.cgi: show the heading only on the homepage
It wastes space on the results pages.
Event: Berlin Hackathon 202609
---
website/content/en/cgi/ports.cgi | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi
index 9b2c7f93e7..8b9ad091cd 100755
--- a/website/content/en/cgi/ports.cgi
+++ b/website/content/en/cgi/ports.cgi
@@ -842,7 +842,6 @@ if ( $stype eq "help" ) {
&exit(0);
}
-print &html_header( "FreeBSD Ports Search", 1 );
# allow `/ports.cgi?netscape' where 'netscape' is the query port to search
# this make links to this script shorter
@@ -850,6 +849,13 @@ if ( !$query && $query_string =~ /^([^=&]+)$/ ) {
$query = $1;
}
+if ($query) {
+ print &short_html_header( "FreeBSD Ports Search", 1 );
+ print "<br/>\n";
+} else {
+ print &html_header( "FreeBSD Ports Search", 1 );
+}
+
# get all categories
@sec = &readcoll;