You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by gs...@apache.org on 2026/10/12 03:33:37 UTC

(tooling-llmao) 06/08: nav: move Help to the right and add the ASF links

This is an automated email from the ASF dual-hosted git repository.

gstein pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-llmao.git

commit 10834091806b65dfe8f585291488d67210dc324c
Author: Greg Stein <gs...@gmail.com>
AuthorDate: Sun Oct 11 22:11:43 2026 -0500

    nav: move Help to the right and add the ASF links
    
    Help is a utility, so it sits on the right with the account menu, and
    the left holds only the pages people work in.
    
    An ASF dropdown carries the links the project-site policy asks for in
    the main navigation: License, Sponsorship, Thanks, Security and
    Privacy, with the Foundation's home page. The footer repeats the ones
    people look for there and adds the trademark attribution. No trademark
    symbol on the name, which may change.
    
    Co-authored-by: Claude Opus 5.5 <no...@anthropic.com>
---
 templates/footer.ezt | 12 ++++++++++++
 templates/header.ezt | 19 +++++++++++++++++--
 tests/test_help.py   | 16 +++++++++++++++-
 3 files changed, 44 insertions(+), 3 deletions(-)

diff --git a/templates/footer.ezt b/templates/footer.ezt
index 1cca7a2..c84111c 100644
--- a/templates/footer.ezt
+++ b/templates/footer.ezt
@@ -6,6 +6,18 @@
             &middot; running <a href="[repo]/commit/[commit]">[commit]</a>
             [if-any is_site_admin]&middot; last restarted [restarted_at][end]
         </p>
+        <p class="text-muted mt-2 mb-0 small">
+            <a href="https://www.apache.org/">The Apache Software Foundation</a>
+            &middot; <a href="https://www.apache.org/licenses/">License</a>
+            &middot; <a href="https://www.apache.org/security/">Security</a>
+            &middot; <a href="https://privacy.apache.org/policies/privacy-policy-public.html">Privacy</a>
+        </p>
+        <p class="text-muted mt-2 mb-0 small">
+            Apache and the Apache logo are either registered trademarks or
+            trademarks of The Apache Software Foundation in the United States
+            and other countries. All other marks mentioned may be trademarks or
+            registered trademarks of their respective owners.
+        </p>
     </div>
 </footer>
 
diff --git a/templates/header.ezt b/templates/header.ezt
index 7777c09..69ec0e3 100644
--- a/templates/header.ezt
+++ b/templates/header.ezt
@@ -39,11 +39,26 @@
                 </li>
                 [end]
                 [end]
+            </ul>
+            <ul class="navbar-nav ms-auto mb-2 mb-lg-0">
+                <li class="nav-item dropdown">
+                    <a class="nav-link dropdown-toggle" href="#" id="asfDropdown" role="button"
+                       data-bs-toggle="dropdown" aria-expanded="false">
+                        ASF
+                    </a>
+                    <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="asfDropdown">
+                        <li><a class="dropdown-item" href="https://www.apache.org/">The Apache Software Foundation</a></li>
+                        <li><hr class="dropdown-divider"></li>
+                        <li><a class="dropdown-item" href="https://www.apache.org/licenses/">License</a></li>
+                        <li><a class="dropdown-item" href="https://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+                        <li><a class="dropdown-item" href="https://www.apache.org/foundation/thanks.html">Thanks</a></li>
+                        <li><a class="dropdown-item" href="https://www.apache.org/security/">Security</a></li>
+                        <li><a class="dropdown-item" href="https://privacy.apache.org/policies/privacy-policy-public.html">Privacy</a></li>
+                    </ul>
+                </li>
                 <li class="nav-item">
                     <a class="nav-link[is nav "help"] active[end]" href="/help"[is nav "help"] aria-current="page"[end]>Help</a>
                 </li>
-            </ul>
-            <ul class="navbar-nav ms-auto mb-2 mb-lg-0">
                 [if-any uid]
                 <li class="nav-item dropdown">
                     <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
diff --git a/tests/test_help.py b/tests/test_help.py
index 7e80d99..25a9351 100644
--- a/tests/test_help.py
+++ b/tests/test_help.py
@@ -85,7 +85,21 @@ def test_help_template_uses_the_page_frame(tmp_path):
     # Signing in from here comes back here.
     assert 'href="/auth?login=/help"' in out
     assert "Apache LLMAO" in out
-    assert "Apache LLMAO" in out
+    # Help is a utility: once in the bar, after the working pages.
+    assert out.count(">Help</a>") == 1
+    # The links the ASF asks project sites to carry in their navigation.
+    for text, url in (
+        ("License", "https://www.apache.org/licenses/"),
+        ("Sponsorship", "https://www.apache.org/foundation/sponsorship.html"),
+        ("Thanks", "https://www.apache.org/foundation/thanks.html"),
+        ("Security", "https://www.apache.org/security/"),
+        ("Privacy", "https://privacy.apache.org/policies/privacy-policy-public.html"),
+    ):
+        assert f'<a class="dropdown-item" href="{url}">{text}</a>' in out
+    assert 'href="https://www.apache.org/"' in out
+    footer = out[out.index("<footer") :]
+    assert "trademarks of The Apache Software Foundation" in footer
+    assert "™" not in out and "&trade;" not in out
     assert 'href="/help/faq"' in out
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org