diff options
| author | Vosjedev <vosje@vosjedev.net> | 2025-11-06 20:59:19 +0100 |
|---|---|---|
| committer | Vosjedev <vosje@vosjedev.net> | 2025-11-06 20:59:19 +0100 |
| commit | bd4b3305a8eba4a360df7db16223ea11e6f3d721 (patch) | |
| tree | a57f0d97d6b5e4717482b9a6f3eb844e2ee767d6 | |
| parent | d2fca8cb5f4278f5a785109f3871a84b6974d915 (diff) | |
| download | acit-bd4b3305a8eba4a360df7db16223ea11e6f3d721.tar.gz acit-bd4b3305a8eba4a360df7db16223ea11e6f3d721.tar.bz2 acit-bd4b3305a8eba4a360df7db16223ea11e6f3d721.tar.xz | |
html: use `nav` element for navigation
first in a larger amount of commits slowly processing feedback from
daarb (thx btw)
| -rw-r--r-- | html/mailpage.html | 4 | ||||
| -rw-r--r-- | html/projectpage.html | 4 | ||||
| -rw-r--r-- | html/style.css | 2 | ||||
| -rw-r--r-- | src/acit/html.py | 10 |
4 files changed, 12 insertions, 8 deletions
diff --git a/html/mailpage.html b/html/mailpage.html index 8bcbc56..034cee8 100644 --- a/html/mailpage.html +++ b/html/mailpage.html @@ -7,7 +7,7 @@ <link href="/style" rel="stylesheet"> </head> <body> - <div class="formattedheader"> + <nav class="formattedheader"> <span class="left"> <a href="/{project}/">{project}</a>/<a href="/{project}/{bug}">{bug}</a>/{pagenr} {jumptos} @@ -15,7 +15,7 @@ <span class="right"> bugtype: {bugtype} | status: <span id="status" class="status-{status}">{status}</span> </span> - </div> + </nav> <h2 class="subject"> <span class="bugnr">#{bug}</span> {subject} </h2> diff --git a/html/projectpage.html b/html/projectpage.html index faff12a..3db80ca 100644 --- a/html/projectpage.html +++ b/html/projectpage.html @@ -7,11 +7,11 @@ <link href="/style" rel="stylesheet"> </head> <body> - <div class="formattedheader"> + <nav class="formattedheader"> <span class="left"> <a href="/{project}/">{project}</a> </span> - </div> + </nav> <h2 class="trackerpage-header"> {project} </h2> diff --git a/html/style.css b/html/style.css index 8e366ab..27a9f0a 100644 --- a/html/style.css +++ b/html/style.css @@ -62,9 +62,11 @@ h1, h2 { .status-OPEN { background-color: #00ff00; + color: #000; } .status-CLOSED { background-color: #303030; + color: #fafafa; } .status-UNCONF { background-color: #ff8100; diff --git a/src/acit/html.py b/src/acit/html.py index 30da258..dd06c77 100644 --- a/src/acit/html.py +++ b/src/acit/html.py @@ -14,7 +14,7 @@ mailpage=""" <link href="/style" rel="stylesheet"> </head> <body> - <div class="formattedheader"> + <nav class="formattedheader"> <span class="left"> <a href="/{project}/">{project}</a>/<a href="/{project}/{bug}">{bug}</a>/{pagenr} {jumptos} @@ -22,7 +22,7 @@ mailpage=""" <span class="right"> bugtype: {bugtype} | status: <span id="status" class="status-{status}">{status}</span> </span> - </div> + </nav> <h2 class="subject"> <span class="bugnr">#{bug}</span> {subject} </h2> @@ -65,11 +65,11 @@ projectpage=""" <link href="/style" rel="stylesheet"> </head> <body> - <div class="formattedheader"> + <nav class="formattedheader"> <span class="left"> <a href="/{project}/">{project}</a> </span> - </div> + </nav> <h2 class="trackerpage-header"> {project} </h2> @@ -222,9 +222,11 @@ h1, h2 { .status-OPEN { background-color: #00ff00; + color: #000; } .status-CLOSED { background-color: #303030; + color: #fafafa; } .status-UNCONF { background-color: #ff8100; |
