diff options
| author | Vosjedev <vosje@vosjedev.net> | 2025-11-09 13:51:15 +0100 |
|---|---|---|
| committer | Vosjedev <vosje@vosjedev.net> | 2025-11-09 13:51:15 +0100 |
| commit | 4ceb0072ba5802d66a1362af6712090016ea495b (patch) | |
| tree | e8da511c6899e2ceee96d9970547472e3d9a084e | |
| parent | de667cd00ee30712480bdbc2cd98b83fbb2b966c (diff) | |
| download | acit-4ceb0072ba5802d66a1362af6712090016ea495b.tar.gz acit-4ceb0072ba5802d66a1362af6712090016ea495b.tar.bz2 acit-4ceb0072ba5802d66a1362af6712090016ea495b.tar.xz | |
html: Fix jumps jumping too far (to be tested)
| -rw-r--r-- | html/projectpage.html | 28 | ||||
| -rw-r--r-- | src/acit/html.py | 28 |
2 files changed, 30 insertions, 26 deletions
diff --git a/html/projectpage.html b/html/projectpage.html index 5ffc71d..a337f84 100644 --- a/html/projectpage.html +++ b/html/projectpage.html @@ -8,8 +8,8 @@ </head> <body> <div id="skiptocontent"> - <a href="#bugsearch">Skip to search</a> - <a href="#results">Skip to issue listing</a> + <a href="#searchbar-target">Skip to search</a> + <a href="#results-target">Skip to issue listing</a> </div> <nav class="formattedheader"> @@ -31,12 +31,12 @@ <div class="projectpage"> - <article id="left"> - <section id="readme"> + <div id="left"> + <article id="readme"> {readme} - </section> + </article> - <section id="stats"> + <article id="stats"> <h3>Tracker stats:</h3> <table> <tr> @@ -67,14 +67,14 @@ <td>| rejected:</td><td>{patchesrejected}</td> </tr> </table> - </section> + </article> </div> - <article id="right"> + <div id="right"> <form id="bugsearch"> <div id="searchbar"> - <input type="text" name="subject" value="{filter_subject}" placeholder="<filter by subject>"> + <input type="text" name="subject" value="{filter_subject}" placeholder="<filter by subject>" id="searchbar-target"> <input type="submit" value="Find!"> </div> <div class="split5050"> @@ -93,10 +93,12 @@ <input type="checkbox" name="unconf" {filter_unconf} id="unconf"><label for="unconf">unconfirmed</label> </div> </form> - <table id="results"> - <tr> <th>#</th> <th>Subject</th> <th>Status</th> <th>Type</th></tr> - {maillist} - </table> + <article> + <table id="results"> + <tr> <th id="results-target">#</th> <th>Subject</th> <th>Status</th> <th>Type</th></tr> + {maillist} + </table> + </article> </div> </div> diff --git a/src/acit/html.py b/src/acit/html.py index 36d77ab..f05bb61 100644 --- a/src/acit/html.py +++ b/src/acit/html.py @@ -66,8 +66,8 @@ projectpage=""" </head> <body> <div id="skiptocontent"> - <a href="#bugsearch">Skip to search</a> - <a href="#results">Skip to issue listing</a> + <a href="#searchbar-target">Skip to search</a> + <a href="#results-target">Skip to issue listing</a> </div> <nav class="formattedheader"> @@ -89,12 +89,12 @@ projectpage=""" <div class="projectpage"> - <article id="left"> - <section id="readme"> + <div id="left"> + <article id="readme"> {readme} - </section> + </article> - <section id="stats"> + <article id="stats"> <h3>Tracker stats:</h3> <table> <tr> @@ -125,14 +125,14 @@ projectpage=""" <td>| rejected:</td><td>{patchesrejected}</td> </tr> </table> - </section> + </article> </div> - <article id="right"> + <div id="right"> <form id="bugsearch"> <div id="searchbar"> - <input type="text" name="subject" value="{filter_subject}" placeholder="<filter by subject>"> + <input type="text" name="subject" value="{filter_subject}" placeholder="<filter by subject>" id="searchbar-target"> <input type="submit" value="Find!"> </div> <div class="split5050"> @@ -151,10 +151,12 @@ projectpage=""" <input type="checkbox" name="unconf" {filter_unconf} id="unconf"><label for="unconf">unconfirmed</label> </div> </form> - <table id="results"> - <tr> <th>#</th> <th>Subject</th> <th>Status</th> <th>Type</th></tr> - {maillist} - </table> + <article> + <table id="results"> + <tr> <th id="results-target">#</th> <th>Subject</th> <th>Status</th> <th>Type</th></tr> + {maillist} + </table> + </article> </div> </div> |
