aboutsummarybugs & patchesrefslogtreecommitdiffstats
path: root/src/acit/html.py
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 /src/acit/html.py
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>
Diffstat (limited to 'src/acit/html.py')
-rw-r--r--src/acit/html.py6
1 files changed, 5 insertions, 1 deletions
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>