fix/ascii-and-http (#14)
Docker Build and Push / build-and-push (push) Successful in 47s

- Restored broken download tooltips that showed raw template placeholders instead of rendered values
- Simplified `autobuild.py` by removing unnecessary fallback/parsing complexity and reducing helper overhead
- Audited non-ASCII characters and get rid of Unicode “gremlins” that are not supported by WebView
- Converted hardcoded external template links to protocol-relative `//...` URLs so they follow the current site scheme

Reviewed-on: #14
Reviewed-by: Gleb Zaharov <risdeveau@lair.moe>
Co-authored-by: Burer <burer@kolibrios.org>
Co-committed-by: Burer <burer@kolibrios.org>
This commit was merged in pull request #14.
This commit is contained in:
2026-04-04 17:01:36 +00:00
committed by Burer
parent 91b6443f64
commit e161237894
9 changed files with 72 additions and 68 deletions
+11 -4
View File
@@ -45,15 +45,22 @@ def before_request():
@app.context_processor
def _inject_autobuild_vers():
return {"autobuild_vers": autobuild.autobuild_vers}
return {
"autobuild_vers": autobuild.autobuild_vers,
"autobuild_sizes": autobuild.autobuild_sizes,
}
@app.context_processor
def _inject_autobuild_date():
return {
"autobuild_date": g.translations.get("downloads", {})
.get("date-format", "{DD}.{MM}.{YYYY}")
.format(**autobuild.autobuild_date)
"autobuild_date": autobuild.autobuild_date.strftime(
g.translations.get("downloads", {})
.get("date-format", "{DD}.{MM}.{YYYY}")
.replace("{YYYY}", "%Y")
.replace("{MM}", "%m")
.replace("{DD}", "%d")
)
}