aboutsummarybugs & patchesrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVosjedev <vosje@vosjedev.net>2026-01-22 14:48:38 +0100
committerVosjedev <vosje@vosjedev.net>2026-01-22 14:48:38 +0100
commitbce849c7a6876781649e809078066948c61ee209 (patch)
treecd8e9ec6ff6d3693e4f4a9cc37a389e3743490fc
parent2616b3e0ffb75988320734352e0cf8f16b1f3fec (diff)
downloadacit-bce849c7a6876781649e809078066948c61ee209.tar.gz
acit-bce849c7a6876781649e809078066948c61ee209.tar.bz2
acit-bce849c7a6876781649e809078066948c61ee209.tar.xz
html: add skip navigation button to mailpage
Signed-off-by: Vosjedev <vosje@vosjedev.net>
-rw-r--r--html/mailpage.html6
-rw-r--r--src/acit/html.py6
2 files changed, 10 insertions, 2 deletions
diff --git a/html/mailpage.html b/html/mailpage.html
index 16e9249..e95d62c 100644
--- a/html/mailpage.html
+++ b/html/mailpage.html
@@ -7,6 +7,10 @@
<link href="/style" rel="stylesheet">
</head>
<body>
+ <div id="skiptocontent">
+ <a href="#content-target">Skip navigation</a>
+ </div>
+
<nav class="formattedheader">
<span class="left">
<a href="/{project}/">{project}</a>/<a href="/{project}/{bug}">{bug}</a>/{pagenr}
@@ -24,7 +28,7 @@
<p>
<a href="mailto:{emailaddr}">Click to comment via email</a> or <a href="mailto:{subscribe}">subscribe</a>
</p>
- <p class="center-text">{pageswitcher}</p>
+ <p class="center-text" id="content-target">{pageswitcher}</p>
{content}
</article>
<p class="center-text">{pageswitcher}</p>
diff --git a/src/acit/html.py b/src/acit/html.py
index cc874ae..9bb143d 100644
--- a/src/acit/html.py
+++ b/src/acit/html.py
@@ -14,6 +14,10 @@ mailpage="""
<link href="/style" rel="stylesheet">
</head>
<body>
+ <div id="skiptocontent">
+ <a href="#content-target">Skip navigation</a>
+ </div>
+
<nav class="formattedheader">
<span class="left">
<a href="/{project}/">{project}</a>/<a href="/{project}/{bug}">{bug}</a>/{pagenr}
@@ -31,7 +35,7 @@ mailpage="""
<p>
<a href="mailto:{emailaddr}">Click to comment via email</a> or <a href="mailto:{subscribe}">subscribe</a>
</p>
- <p class="center-text">{pageswitcher}</p>
+ <p class="center-text" id="content-target">{pageswitcher}</p>
{content}
</article>
<p class="center-text">{pageswitcher}</p>