This is an automated email from the ASF dual-hosted git repository. tn pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tooling-atr-experiments.git
The following commit(s) were added to refs/heads/main by this push: new d9c8df4 convert index page to use base layout d9c8df4 is described below commit d9c8df4fcd6771bf780e802397c4d98cb0f997f1 Author: Thomas Neidhart <t...@apache.org> AuthorDate: Sat Feb 15 16:09:14 2025 +0100 convert index page to use base layout --- atr/routes.py | 15 ++------------- atr/templates/index.html | 7 +++++++ 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/atr/routes.py b/atr/routes.py index bfbd3c1..c5690fc 100644 --- a/atr/routes.py +++ b/atr/routes.py @@ -173,19 +173,8 @@ def compute_sha512(file_path: Path) -> str: @APP.route("/") async def root() -> str: - "Main PMC directory page." - return """\ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="utf-8"> - <title>ATR</title> -</head> -<body> - <h1>Apache Trusted Releases</h1> -</body> -</html> -""" + """Main page.""" + return await render_template("index.html") @APP.route("/add-release-candidate", methods=["GET", "POST"]) diff --git a/atr/templates/index.html b/atr/templates/index.html new file mode 100644 index 0000000..aca8b75 --- /dev/null +++ b/atr/templates/index.html @@ -0,0 +1,7 @@ +{% extends "layouts/base.html" %} + +{% block title %}Apache Trusted Release Platform{% endblock %} + +{% block content %} +<h1>Apache Trusted Releases</h1> +{% endblock content %} --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tooling.apache.org For additional commands, e-mail: dev-h...@tooling.apache.org