From df53a41e6e9a457aeffadce89bd5e61a6a77dfde Mon Sep 17 00:00:00 2001 From: Luka Hietala Date: Wed, 19 Nov 2025 19:33:07 +0200 Subject: [PATCH] add base for repo detail page --- app.py | 4 ++++ templates/index.html | 2 +- templates/repo.html | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 templates/repo.html diff --git a/app.py b/app.py index d2fad78..0c5d650 100644 --- a/app.py +++ b/app.py @@ -37,6 +37,10 @@ def index(): version = get_version() return render_template("index.html", repos=repos, version=version) +@app.route("/") +def repo_detail(repo_name): + return render_template("repo.html", repo_name=repo_name) + @app.route("//commits") def repo_commits(repo_name): ref = request.args.get('ref', 'HEAD') diff --git a/templates/index.html b/templates/index.html index 346e088..de7f94c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,7 +2,7 @@

Repositories

diff --git a/templates/repo.html b/templates/repo.html new file mode 100644 index 0000000..1b3bfce --- /dev/null +++ b/templates/repo.html @@ -0,0 +1,6 @@ +{% block content %} +Commits +Refs +Tree +Diff +{% endblock %} \ No newline at end of file -- 2.47.3