From nobody Sun Sep 17 09:18:55 2023 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RpMmv3Nhhz4tCNw for ; Sun, 17 Sep 2023 09:18:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RpMmv2w0nz4KYv; Sun, 17 Sep 2023 09:18:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694942335; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6QZ5D0lbRCE3fi+obrvrloEgjZZxHp01e7Bdr4SV7Z4=; b=Y9s4hBDUp4qqcpVURAo7zav4Eu8CApmVbtsHLEB9g/T9UG+btHav13OIdA4g30Gi6GJ9y8 Q5qQ5Sc0BdRrVozwgEI1n928gu9+0Z9qjKFg38sNkwrzBgNN9qk4KDIto4pCjMzbUcXcNO i36nHaHxuw2D7y91hRrYMrDIxSU+iBwcx4Sz8ZA7lpGp4hjPqhaq06DBM4m2++0rEeOnCx sKhcsjYo7QFioP/6D0+3vFvajQ8UVyjlf/TYpLT9QwUSqLd1f6Ybdc90RIp7SVPz9G28l/ C/2N6XnqTuxQqlm/AOGyzNcacaXgOL+IO11gtl+5Js6LHgr9veLNgRwErl3gOw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694942335; a=rsa-sha256; cv=none; b=FY1n5LrFvIcqsoyk5tohWhKqJChGXMK//taDjjugc2xp1vwMvtKLnjJqCjGVqDlSq6IOoc zlD3AbqVl0U5tcL2Od0ghmBTY9sV+4hB47iS68McOj961lFB90dd/WXPHNESgWOPuko76K NH57/XTpAiYIhr3yXUioqhfct5bNRpAZBfMqJHM48SrqOaDpraXPCQSmorAjU8yXQd6xYE REWifDPc9SswIJEsds8WYqEhZEDVtjSZ2LkVbYPSXYge1rK7t7NYv/WoPU6HchAbNchUq/ Qs5dXiR1gYjIBAqGngAI+xtsIhytBrlGmR22s3Edyyhjt4AcL+eoCsxzwmyhbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694942335; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6QZ5D0lbRCE3fi+obrvrloEgjZZxHp01e7Bdr4SV7Z4=; b=gPsxIHni8Fb8FyY2Zdj3Lcxo24h9CbbO10ptBtdZcUu7Sd8V0HN+/+mSQ7VtmRF/tD+q84 1jEQBPECJ0A6G8Q4CeaVP2Tcsb5YiRUxz91cP5ChhdWBz86CYMuxV5I+QvVpJKXUmXNB04 D4qa1FBOkH9n2VuOXeP9Ehb58IDhZGOhwWur6wL8hY6d/OKSuhv1mXRIUgNF23sIl1uZ+M u4YsIIYa44Fk8aJaZpIj0XkxE/M099NXT4pQ6dqbPdRYbNtOm/+sEb5eCAfoQcaaUyYkNH N0E6ONrJm6ClB3svzoDCr1XRpWqbKwcAXTuOcLhDO1pMY9vvAQzC4Z4tpTtxMg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RpMmv1yGfzjdh; Sun, 17 Sep 2023 09:18:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38H9It5i092147; Sun, 17 Sep 2023 09:18:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38H9ItWw092144; Sun, 17 Sep 2023 09:18:55 GMT (envelope-from git) Date: Sun, 17 Sep 2023 09:18:55 GMT Message-Id: <202309170918.38H9ItWw092144@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Wolfram Schneider Subject: git: ab6ea99001 - main - add footer links List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ab6ea99001bc009a131ab76f7f4a167760d65f6e Auto-Submitted: auto-generated The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/doc/commit/?id=ab6ea99001bc009a131ab76f7f4a167760d65f6e commit ab6ea99001bc009a131ab76f7f4a167760d65f6e Author: Wolfram Schneider AuthorDate: 2023-09-17 09:18:13 +0000 Commit: Wolfram Schneider CommitDate: 2023-09-17 09:18:13 +0000 add footer links update help page --- website/content/en/cgi/ports.cgi | 85 +++++++++++++++++++++++++++------------- 1 file changed, 58 insertions(+), 27 deletions(-) diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi index 7dba650226..73137346fe 100755 --- a/website/content/en/cgi/ports.cgi +++ b/website/content/en/cgi/ports.cgi @@ -32,6 +32,7 @@ use Time::Local; require "./cgi-style.pl"; $t_style = qq` `; @@ -109,7 +110,7 @@ sub last_update { } sub last_update_message { - return "

Last database update: " . &last_update . "

\n"; + return "

Last database update: @{[ &last_update ]}

\n"; } sub dec { @@ -366,7 +367,6 @@ sub search_ports { sub forms { print qq{

The FreeBSD Ports and Packages Collection offers a simple way for users and administrators to install applications. -FAQ

}; @@ -410,9 +410,11 @@ Search for: . qq{value="$_">$_\n}; } - print q{ + print qq{ +
+@{[ &footer_links ]}
}; @@ -420,16 +422,20 @@ Search for: sub footer { - print qq{ -Powered by FreeBSD -© 1996-2023 by Wolfram Schneider. All rights reserved.
-}; +print < + Powered by FreeBSD + © 1996-2023 by Wolfram Schneider. All rights reserved.
+ + General questions about FreeBSD ports should be sent to + $mailtoList
- print qq{General questions about FreeBSD ports should be sent to } - . qq{} - . qq{$mailtoList
\n}; - print &last_update_message; - print qq{
\n

\n}; + @{[ &last_update_message ]} + +


+

+ +EOF } sub check_query { @@ -475,30 +481,51 @@ sub check_input { } sub faq { - print qq{

FreeBSD Ports Search FAQ

+ print < +

FreeBSD Ports Search Help

Keywords

-
Description
A more detailed description. -
Changes
Read the latest changes. +
Description
+
A more detailed description (text).
+ +
Changes
+
Read the latest changes via the git repo
-

Misc

+

Documentation

+

+Handbook: Using the Ports Collection +

+ +

+You may also search the +ports manual pages. +

+ +

Updates

The script ports.cgi use the file $ports_database as database for its operations. $ports_database is updated automatically every -two hours.

+two hours. +

-

-You may also search the -ports manual pages.

-

-Back to the search engine

+@{[ &footer_links ]}
-}; +EOF +} + +sub footer_links { + return < + home + @{[ $stype eq "faq" ? "" : qq, | help, ]} + +EOF } # @@ -528,7 +555,7 @@ if ( $path_info eq "/source" ) { } if ( $stype eq "faq" ) { - print &short_html_header( "FreeBSD Ports Search FAQ", 1 ); + print &short_html_header( "FreeBSD Ports Search Help", 1 ); &faq; &footer; print &html_footer; @@ -566,12 +593,16 @@ if ($query) { } if ( !$counter ) { - print "Sorry, nothing found.\n"; - print qq{You may look for other } - . qq{FreeBSD Search Services.\n}; + print < +Sorry, nothing found. +You may look for other FreeBSD Search Services +

+EOF } else { print "\n"; + print &footer_links; } print qq{
\n};