[fix](trx-frontend): add footer project link and safari favicon fix

Add the trx-rs GitHub link in the footer and make favicon handling more explicit for Safari.

Co-authored-by: OpenAI Codex <codex@openai.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-01 11:03:47 +01:00
parent f8507698f4
commit f9492633d9
2 changed files with 8 additions and 6 deletions
@@ -4,8 +4,10 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"> <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>trx-rs v{ver}</title> <title>trx-rs v{ver}</title>
<link rel="icon" type="image/png" href="/favicon.png?v=3" /> <link rel="icon" type="image/png" sizes="32x32" href="/favicon.png?v=4" />
<link rel="apple-touch-icon" href="/favicon.png?v=3" /> <link rel="icon" type="image/png" sizes="16x16" href="/favicon.png?v=4" />
<link rel="shortcut icon" href="/favicon.png?v=4" />
<link rel="apple-touch-icon" sizes="180x180" href="/favicon.png?v=4" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/dseg14-classic/400.css" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/dseg14-classic/400.css" />
<link rel="stylesheet" href="/style.css" /> <link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
@@ -398,7 +400,7 @@
</div> </div>
<div class="footer"> <div class="footer">
<div class="copyright"> <div class="copyright">
Built by <a href="https://www.qrzcq.com/call/SP2SJG" target="_blank" rel="noopener">SP2SJG</a> from <a href="https://haxx.space" target="_blank" rel="noopener">haxx.space</a><span id="copyright-year"></span> Built by <a href="https://www.qrzcq.com/call/SP2SJG" target="_blank" rel="noopener">SP2SJG</a> from <a href="https://haxx.space" target="_blank" rel="noopener">haxx.space</a> · <a href="https://github.com/sgrams/trx-rs" target="_blank" rel="noopener">trx-rs on GitHub</a><span id="copyright-year"></span>
- <span id="footer-server-build">trx-server v-- --</span> - <span id="footer-server-build">trx-server v-- --</span>
- <span id="footer-client-build">trx-client v{ver} {client_build_date}</span> - <span id="footer-client-build">trx-client v{ver} {client_build_date}</span>
</div> </div>
@@ -775,9 +775,9 @@ async fn index() -> impl Responder {
#[get("/favicon.ico")] #[get("/favicon.ico")]
async fn favicon() -> impl Responder { async fn favicon() -> impl Responder {
HttpResponse::Ok() HttpResponse::TemporaryRedirect()
.insert_header((header::CONTENT_TYPE, "image/png")) .insert_header((header::LOCATION, "/favicon.png?v=4"))
.body(FAVICON_BYTES) .finish()
} }
#[get("/favicon.png")] #[get("/favicon.png")]